aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Frühberger <Peter.Fruehberger@gmail.com>2019-04-08 20:51:27 +0200
committerGitHub <noreply@github.com>2019-04-08 20:51:27 +0200
commite17f937f130cfb20df80b9f7a8cb0efb24d3de10 (patch)
tree98be36ceb908bafaf86f9c0b2fb4239a89443507
parentb8679c0b19aaa91057f0fb3ca386cc24d8f445e2 (diff)
parente4b057750f579b4cd207e5d768626bc29a938efa (diff)
Merge pull request #15873 from fritsch/discard
DVDDemuxFFmpeg: Do not discard stream indexes belonging to program
-rw-r--r--xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp b/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
index 39108d2cc9..ce559f0b28 100644
--- a/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
+++ b/xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
@@ -1362,7 +1362,9 @@ void CDVDDemuxFFmpeg::CreateStreams(unsigned int program)
// add streams from selected program
for (unsigned int i = 0; i < m_pFormatContext->programs[m_program]->nb_stream_indexes; i++)
{
- AddStream(m_pFormatContext->programs[m_program]->stream_index[i]);
+ int streamIdx = m_pFormatContext->programs[m_program]->stream_index[i];
+ m_pFormatContext->streams[streamIdx]->discard = AVDISCARD_NONE;
+ AddStream(streamIdx);
}
// discard all unneeded streams