Skip to content
Browse files

dvdplayer: correct determination if video is playing

  • Loading branch information...
1 parent bfc42e7 commit c9c5fb62700748aae1c6d19a48147d26e0481313 @FernetMenta committed Oct 11, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 xbmc/cores/dvdplayer/DVDPlayer.cpp
View
11 xbmc/cores/dvdplayer/DVDPlayer.cpp
@@ -2377,9 +2377,16 @@ bool CDVDPlayer::IsPaused() const
bool CDVDPlayer::HasVideo() const
{
- if (m_pInputStream && m_pInputStream->IsStreamType(DVDSTREAM_TYPE_DVD)) return true;
+ bool hasVideo(false);
- return m_SelectionStreams.Count(STREAM_VIDEO) > 0 ? true : false;
+ if (m_pInputStream && m_pInputStream->IsStreamType(DVDSTREAM_TYPE_DVD))
+ hasVideo = true;
+ else if (m_SelectionStreams.Count(STREAM_VIDEO) > 0)
+ hasVideo = true;
+ else if (g_renderManager.IsConfigured())
+ hasVideo = true;
+
+ return hasVideo;
}
bool CDVDPlayer::HasAudio() const

0 comments on commit c9c5fb6

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