修复设置点播速度后时间戳跳跃问题

This commit is contained in:
xia-chu 2023-08-26 11:34:12 +08:00
parent b4fd445f2d
commit f3f4b49332

View File

@ -184,8 +184,10 @@ bool MP4Reader::speed(MediaSource &sender, float speed) {
WarnL << "播放速度取值范围非法:" << speed;
return false;
}
//_seek_ticker重置赋值_seek_to
setCurrentStamp(getCurrentStamp());
// 设置播放速度后应该恢复播放
pause(sender, false);
_paused = false;
if (_speed == speed) {
return true;
}