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:
Karl Blomster 2009-08-07 20:16:13 +00:00
parent 1a182098fc
commit 65fb2e7efa

View file

@ -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;