diff options
author | Dom Cobley <popcornmix@gmail.com> | 2024-02-22 13:04:51 +0000 |
---|---|---|
committer | Dom Cobley <popcornmix@gmail.com> | 2024-02-27 13:54:33 +0000 |
commit | 9244f74b3a835e6a85ce37e539fca0ee33e437fc (patch) | |
tree | 0f7a0e8d187d2ab3c8210067ccc9ac272a16c042 | |
parent | 213cb317db5687479e5cf1b4b5058082a6ddadb1 (diff) |
VideoPlayer: Reset stale stream times after a flush
The stale starttime can be used and cause a long video stall
as discussed in https://github.com/xbmc/xbmc/issues/24745
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoPlayer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp index bf3f606798..07415753ea 100644 --- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp +++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp @@ -3951,8 +3951,10 @@ void CVideoPlayer::FlushBuffers(double pts, bool accurate, bool sync) { m_CurrentAudio.inited = false; m_CurrentAudio.avsync = CCurrentStream::AV_SYNC_FORCE; + m_CurrentAudio.starttime = DVD_NOPTS_VALUE; m_CurrentVideo.inited = false; m_CurrentVideo.avsync = CCurrentStream::AV_SYNC_FORCE; + m_CurrentVideo.starttime = DVD_NOPTS_VALUE; m_CurrentSubtitle.inited = false; m_CurrentTeletext.inited = false; m_CurrentRadioRDS.inited = false; |