Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…players to start
  • Loading branch information...
commit ba26841fca102a6066c129a910977b440b6b2795 1 parent d6d5652
@elupus elupus authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 xbmc/cores/dvdplayer/DVDPlayer.cpp
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.