Skip to content
Browse files

dvdplayer: clear packets for decoder recovery when opening a new decoder

  • Loading branch information...
1 parent fb40fea commit 31b0bbf2fb84b3452a9506853e69c318ee67fa7f @FernetMenta FernetMenta committed Jan 9, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
View
1 xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
@@ -256,6 +256,7 @@ void CDVDPlayerVideo::OpenStream(CDVDStreamInfo &hint, CDVDVideoCodec* codec)
m_stalled = m_messageQueue.GetPacketCount(CDVDMsg::DEMUXER_PACKET) == 0;
m_started = false;
m_codecname = m_pVideoCodec->GetName();
+ m_packets.clear();
}
void CDVDPlayerVideo::CloseStream(bool bWaitForBuffers)

0 comments on commit 31b0bbf

Please sign in to comment.
Something went wrong with that request. Please try again.