update external clock when stepping forward to fix wrong clock on resume

This commit is contained in:
wang-bin
2016-10-12 10:45:05 +08:00
parent 8c5161ae56
commit cd656df632
+1
View File
@@ -470,6 +470,7 @@ void AVDemuxThread::frameDeliveredOnStepForward()
thread->clock()->setClockAuto(clock_type & 1);
thread->clock()->setClockType(AVClock::ClockType(clock_type/2));
clock_type = -1;
thread->clock()->updateExternalClock((thread->previousHistoryPts() - thread->clock()->initialValue())*1000.0);
}
Q_EMIT stepFinished();
}