Permalink
Browse files

Fix DVD playback.

Do not reset the video tracks when parsing streams and novideo option set
  • Loading branch information...
1 parent 03cdbc3 commit 3194b9f4814ba6bd24e4839849a32631e46d249b @jyavenard jyavenard committed Dec 20, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 mythtv/libs/libmythtv/avformatdecoder.cpp
View
9 mythtv/libs/libmythtv/avformatdecoder.cpp
@@ -1780,9 +1780,12 @@ int AvFormatDecoder::ScanStreams(bool novideo)
tracks[kTrackTypeTeletextCaptions].clear();
tracks[kTrackTypeTeletextMenu].clear();
tracks[kTrackTypeRawText].clear();
- tracks[kTrackTypeVideo].clear();
- selectedTrack[kTrackTypeVideo].av_stream_index = -1;
-
+ if (!novideo)
+ {
+ // we won't rescan video streams
+ tracks[kTrackTypeVideo].clear();
+ selectedTrack[kTrackTypeVideo].av_stream_index = -1;
+ }
map<int,uint> lang_sub_cnt;
uint subtitleStreamCount = 0;
map<int,uint> lang_aud_cnt;

0 comments on commit 3194b9f

Please sign in to comment.