From ad522606658662cada6c72fed399123485d125db Mon Sep 17 00:00:00 2001 From: Ryan Lucia Date: Sun, 30 Dec 2018 14:08:21 -0500 Subject: [PATCH] Ensure FFMS always indexes video tracks Matching historical behavior with DoIndexing, which is assumed throughout the codebase --- src/ffmpegsource_common.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ffmpegsource_common.cpp b/src/ffmpegsource_common.cpp index 0de47e1ee..db167e415 100644 --- a/src/ffmpegsource_common.cpp +++ b/src/ffmpegsource_common.cpp @@ -100,6 +100,7 @@ FFMS_Index *FFmpegSourceProvider::DoIndexing(FFMS_Indexer *Indexer, FFMS_TrackTypeIndexSettings(Indexer, FFMS_TYPE_AUDIO, 1, 0); else if (Track != TrackSelection::None) FFMS_TrackIndexSettings(Indexer, static_cast(Track), 1, 0); + FFMS_TrackTypeIndexSettings(Indexer, FFMS_TYPE_VIDEO, 1, 0); FFMS_SetProgressCallback(Indexer, callback, ps); Index = FFMS_DoIndexing2(Indexer, IndexEH, &ErrInfo); #else