Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

dvdplayer: correct determination if video is playing

  • Loading branch information...
commit 3d95c5ca78ac35dac1f1887197efba171555f9fa 1 parent 9daaf9a
@FernetMenta authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 xbmc/cores/dvdplayer/DVDPlayer.cpp
View
11 xbmc/cores/dvdplayer/DVDPlayer.cpp
@@ -2389,9 +2389,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
Please sign in to comment.
Something went wrong with that request. Please try again.