forked from mia/Aegisub
Remove a pointless attempt to reindex a file in the ffms2 video provider. It didn't help anything, in fact it just caused crashes since the source object was free'd after the first attempt. Fixes #976.
Originally committed to SVN as r3377.
This commit is contained in:
parent
1a182098fc
commit
65fb2e7efa
1 changed files with 2 additions and 7 deletions
|
@ -164,13 +164,8 @@ void FFmpegSourceVideoProvider::LoadVideo(wxString filename) {
|
|||
if (!IndexIsValid) {
|
||||
int TrackMask = Options.AsBool(_T("FFmpegSource always index all tracks")) ? FFMS_TRACKMASK_ALL : FFMS_TRACKMASK_NONE;
|
||||
try {
|
||||
try {
|
||||
// ignore audio decoding errors here, we don't care right now
|
||||
Index = DoIndexing(Indexer, CacheName, TrackMask, true);
|
||||
} catch (...) {
|
||||
// something borked, try if it works without audio
|
||||
Index = DoIndexing(Indexer, CacheName, FFMS_TRACKMASK_NONE, true);
|
||||
}
|
||||
// ignore audio decoding errors here, we don't care right now
|
||||
Index = DoIndexing(Indexer, CacheName, TrackMask, true);
|
||||
} catch (wxString temp) {
|
||||
ErrorMsg.Append(temp);
|
||||
throw ErrorMsg;
|
||||
|
|
Loading…
Reference in a new issue