Use the user's ffms2 error handling mode when indexing video files to avoid reindexing when opening the audio

Originally committed to SVN as r6925.
This commit is contained in:
Thomas Goyne 2012-06-30 15:27:11 +00:00
parent fbd0681d2a
commit a7b254e95f
1 changed files with 1 additions and 2 deletions

View File

@ -130,8 +130,7 @@ void FFmpegSourceVideoProvider::LoadVideo(wxString filename) {
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);
Index = DoIndexing(Indexer, CacheName, TrackMask, GetErrorHandlingMode());
}
// update access time of index file so it won't get cleaned away