Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvdplayer: don't constantly hammer demuxer to get stream count
Note this could cause regressions in files where streams show
up during playback, but i think the demuxer signals such
situations now.
  • Loading branch information
elupus committed Nov 16, 2013
1 parent 7c1462a commit e0531b9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions xbmc/cores/dvdplayer/DVDPlayer.cpp
Expand Up @@ -2799,8 +2799,6 @@ float CDVDPlayer::GetSubTitleDelay()
// priority: 1: libdvdnav, 2: external subtitles, 3: muxed subtitles
int CDVDPlayer::GetSubtitleCount()
{
StreamLock lock(this);
m_SelectionStreams.Update(m_pInputStream, m_pDemuxer);
return m_SelectionStreams.Count(STREAM_SUBTITLE);
}

Expand Down Expand Up @@ -2852,8 +2850,6 @@ void CDVDPlayer::SetSubtitleVisible(bool bVisible)

int CDVDPlayer::GetAudioStreamCount()
{
StreamLock lock(this);
m_SelectionStreams.Update(m_pInputStream, m_pDemuxer);
return m_SelectionStreams.Count(STREAM_AUDIO);
}

Expand Down

0 comments on commit e0531b9

Please sign in to comment.