Hack: Force-disable multithreading in ffms2 video provider when loading AVI files, since there is some long-standing bug related to multithreaded decoding from those.

Originally committed to SVN as r6148.
This commit is contained in:
Niels Martin Hansen 2011-12-23 01:37:49 +00:00
parent b955ad1c52
commit 6a98f9e37f
1 changed files with 3 additions and 0 deletions

View File

@ -199,6 +199,9 @@ void FFmpegSourceVideoProvider::LoadVideo(wxString filename) {
//number of threads automatically determined by ffms2 if given a value < 1
int Threads = Options.AsInt(_T("FFmpegSource threads"));
// hack: multithreading tends to fail on avi files, to force those to use a single thread
if (filename.EndsWith(_T(".avi")))
Threads = 1;
// set seekmode
// TODO: give this its own option?