diff options
author | fritsch <Peter.Fruehberger@gmail.com> | 2019-04-07 16:19:33 +0200 |
---|---|---|
committer | fritsch <Peter.Fruehberger@gmail.com> | 2019-04-07 16:19:33 +0200 |
commit | e4b057750f579b4cd207e5d768626bc29a938efa (patch) | |
tree | 03d4c21d0f40b1716a27ff2bbb2ee591e8a323b3 | |
parent | 39c78c004b6892f27186dffc322ac753cf6104de (diff) |
DVDDemuxFFmpeg: Do not discard stream indexes belonging to program
-rw-r--r-- | xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp | 4 |
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 |