forked from mia/Aegisub
Always index all tracks when "Video/Open Audio" is enabled, as it'll always double-index otherwise
Originally committed to SVN as r6518.
This commit is contained in:
parent
93d3895a2a
commit
c4cba875b4
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ void FFmpegSourceVideoProvider::LoadVideo(wxString filename) {
|
|||
|
||||
// moment of truth
|
||||
if (!Index) {
|
||||
int TrackMask = OPT_GET("Provider/FFmpegSource/Index All Tracks")->GetBool() ? FFMS_TRACKMASK_ALL : FFMS_TRACKMASK_NONE;
|
||||
int TrackMask = FFMS_TRACKMASK_NONE;
|
||||
if (OPT_GET("Provider/FFmpegSource/Index All Tracks")->GetBool() || OPT_GET("Video/Open Audio")->GetBool())
|
||||
TrackMask = FFMS_TRACKMASK_ALL;
|
||||
// ignore audio decoding errors here, we don't care right now
|
||||
Index = DoIndexing(Indexer, CacheName, TrackMask, FFMS_IEH_IGNORE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue