mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
修复设置点播速度后时间戳跳跃问题
This commit is contained in:
parent
b4fd445f2d
commit
f3f4b49332
@ -184,8 +184,10 @@ bool MP4Reader::speed(MediaSource &sender, float speed) {
|
||||
WarnL << "播放速度取值范围非法:" << speed;
|
||||
return false;
|
||||
}
|
||||
//设置播放速度后应该恢复播放
|
||||
pause(sender, false);
|
||||
//_seek_ticker重置,赋值_seek_to
|
||||
setCurrentStamp(getCurrentStamp());
|
||||
// 设置播放速度后应该恢复播放
|
||||
_paused = false;
|
||||
if (_speed == speed) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user