mirror of https://github.com/odrling/Aegisub
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:
parent
fbd0681d2a
commit
a7b254e95f
|
@ -130,8 +130,7 @@ void FFmpegSourceVideoProvider::LoadVideo(wxString filename) {
|
||||||
int TrackMask = FFMS_TRACKMASK_NONE;
|
int TrackMask = FFMS_TRACKMASK_NONE;
|
||||||
if (OPT_GET("Provider/FFmpegSource/Index All Tracks")->GetBool() || OPT_GET("Video/Open Audio")->GetBool())
|
if (OPT_GET("Provider/FFmpegSource/Index All Tracks")->GetBool() || OPT_GET("Video/Open Audio")->GetBool())
|
||||||
TrackMask = FFMS_TRACKMASK_ALL;
|
TrackMask = FFMS_TRACKMASK_ALL;
|
||||||
// ignore audio decoding errors here, we don't care right now
|
Index = DoIndexing(Indexer, CacheName, TrackMask, GetErrorHandlingMode());
|
||||||
Index = DoIndexing(Indexer, CacheName, TrackMask, FFMS_IEH_IGNORE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// update access time of index file so it won't get cleaned away
|
// update access time of index file so it won't get cleaned away
|
||||||
|
|
Loading…
Reference in New Issue