mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-17 04:31:08 +08:00
update external clock when stepping forward to fix wrong clock on resume
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user