Force threads to 1 when opening video via lavf since the ffms2 bug that makes multithreaded decoding sometimes break still hasn't been fixed

Originally committed to SVN as r6761.
This commit is contained in:
Thomas Goyne 2012-05-11 02:58:34 +00:00
parent c354dc9e30
commit baacea6ab0
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,8 @@ void FFmpegSourceVideoProvider::LoadVideo(wxString filename) {
// set thread count
int Threads = OPT_GET("Provider/Video/FFmpegSource/Decoding Threads")->GetInt();
if (FFMS_GetSourceType(Index) == FFMS_SOURCE_LAVF)
Threads = 1;
// set seekmode
// TODO: give this its own option?