ignore error if the ffms index file can't be written
Originally committed to SVN as r2424.
This commit is contained in:
parent
fec27a1c6c
commit
94975c6869
|
@ -79,11 +79,13 @@ FrameIndex *FFmpegSourceProvider::DoIndexing(FrameIndex *Index, wxString FileNam
|
||||||
Progress.ProgressDialog->Destroy();
|
Progress.ProgressDialog->Destroy();
|
||||||
|
|
||||||
// write index to disk for later use
|
// write index to disk for later use
|
||||||
if (FFMS_WriteIndex(CacheName.char_str(), Index, FFMSErrMsg, MsgSize)) {
|
// ignore write errors for now
|
||||||
|
FFMS_WriteIndex(CacheName.char_str(), Index, FFMSErrMsg, MsgSize);
|
||||||
|
/*if (FFMS_WriteIndex(CacheName.char_str(), Index, FFMSErrMsg, MsgSize)) {
|
||||||
wxString temp(FFMSErrMsg, wxConvUTF8);
|
wxString temp(FFMSErrMsg, wxConvUTF8);
|
||||||
MsgString << _T("Failed to write index: ") << temp;
|
MsgString << _T("Failed to write index: ") << temp;
|
||||||
throw MsgString;
|
throw MsgString;
|
||||||
}
|
} */
|
||||||
|
|
||||||
return Index;
|
return Index;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue