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

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; WarnL << "播放速度取值范围非法:" << speed;
return false; return false;
} }
//设置播放速度后应该恢复播放 //_seek_ticker重置赋值_seek_to
pause(sender, false); setCurrentStamp(getCurrentStamp());
// 设置播放速度后应该恢复播放
_paused = false;
if (_speed == speed) { if (_speed == speed) {
return true; return true;
} }