Note this could cause regressions in files where streams show
up during playback, but i think the demuxer signals such
situations now.
// priority: 1: libdvdnav, 2: external subtitles, 3: muxed subtitles
int COMXPlayer::GetSubtitleCount()
{
- OMXStreamLock lock(this);
- m_SelectionStreams.Update(m_pInputStream, m_pDemuxer);
return m_SelectionStreams.Count(STREAM_SUBTITLE);
}
int COMXPlayer::GetAudioStreamCount()
{
- OMXStreamLock lock(this);
- m_SelectionStreams.Update(m_pInputStream, m_pDemuxer);
return m_SelectionStreams.Count(STREAM_AUDIO);
}