Permalink
Browse files

fixed: dvdplayer could end up stalled on a stream change waiting for …

…players to start
  • Loading branch information...
1 parent d6d5652 commit ba26841fca102a6066c129a910977b440b6b2795 @elupus elupus committed Mar 27, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/cores/dvdplayer/DVDPlayer.cpp
@@ -2570,6 +2570,9 @@ bool CDVDPlayer::OpenAudioStream(int iStream, int source)
m_CurrentAudio.stream = (void*)pStream;
m_CurrentAudio.started = false;
+ /* we are potentially going to be waiting on this */
+ m_dvdPlayerAudio.SendMessage(new CDVDMsg(CDVDMsg::PLAYER_STARTED), 1);
+
/* audio normally won't consume full cpu, so let it have prio */
m_dvdPlayerAudio.SetPriority(GetThreadPriority(*this)+1);
@@ -2622,6 +2625,9 @@ bool CDVDPlayer::OpenVideoStream(int iStream, int source)
m_CurrentVideo.stream = (void*)pStream;
m_CurrentVideo.started = false;
+ /* we are potentially going to be waiting on this */
+ m_dvdPlayerVideo.SendMessage(new CDVDMsg(CDVDMsg::PLAYER_STARTED), 1);
+
#if defined(__APPLE__)
// Apple thread scheduler works a little different than Linux. It
// will favor OS GUI side and can cause DVDPlayerVideo to miss frame

0 comments on commit ba26841

Please sign in to comment.