From 94975c6869d8799b112bf7f3a42aca2e8270f851 Mon Sep 17 00:00:00 2001
From: Karl Blomster <kalle.blomster@gmail.com>
Date: Tue, 28 Oct 2008 01:39:42 +0000
Subject: [PATCH] ignore error if the ffms index file can't be written

Originally committed to SVN as r2424.
---
 aegisub/ffmpegsource_common.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/aegisub/ffmpegsource_common.cpp b/aegisub/ffmpegsource_common.cpp
index 538d18fe8..16554fe82 100644
--- a/aegisub/ffmpegsource_common.cpp
+++ b/aegisub/ffmpegsource_common.cpp
@@ -79,11 +79,13 @@ FrameIndex *FFmpegSourceProvider::DoIndexing(FrameIndex *Index, wxString FileNam
 	Progress.ProgressDialog->Destroy();
 
 	// 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);
 		MsgString << _T("Failed to write index: ") << temp;
 		throw MsgString;
-	}
+	} */
 
 	return Index;
 }
-- 
GitLab