Permalink
Browse files

Select the "best" video tracks available for playback

Optimize and speed-up the detection and handling of video streams. Every video streams used to be opened during the scan, and the last one found would be use.
This commit change the behavior as follow:
Scan all streams.
Once scan is completed, search for the best video stream using FFmpeg convenience method av_find_best_stream. And only open the code and initialise the video output for that particular stream.

Also, should an error occur while scanning a particular stream, it is now simply ignored instead of completely stopping the scan.
  • Loading branch information...
jyavenard committed Dec 13, 2012
1 parent 1b2fb3c commit a1eac715a9ff2f1d18cfddc69f49664c57150735
Showing with 248 additions and 192 deletions.
  1. +247 −192 mythtv/libs/libmythtv/avformatdecoder.cpp
  2. +1 −0 mythtv/libs/libmythtv/avformatdecoder.h
Oops, something went wrong.

0 comments on commit a1eac71

Please sign in to comment.