From baacea6ab0da2a87755d9c95a12247df566bbb8b Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 11 May 2012 02:58:34 +0000 Subject: [PATCH] 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. --- aegisub/src/video_provider_ffmpegsource.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/video_provider_ffmpegsource.cpp b/aegisub/src/video_provider_ffmpegsource.cpp index aa4d68113..6847128d4 100644 --- a/aegisub/src/video_provider_ffmpegsource.cpp +++ b/aegisub/src/video_provider_ffmpegsource.cpp @@ -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?