From 0839a6ed0700647182bfaeb48579befb389fdc5b Mon Sep 17 00:00:00 2001 From: Sacha Date: Thu, 20 Jun 2013 01:34:25 +1000 Subject: [PATCH] Fix frozen black screens for non-FFMPEG platforms --- Core/HW/MediaEngine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/HW/MediaEngine.cpp b/Core/HW/MediaEngine.cpp index 62eea7b2cc..03f2b5273a 100644 --- a/Core/HW/MediaEngine.cpp +++ b/Core/HW/MediaEngine.cpp @@ -371,12 +371,11 @@ void MediaEngine::updateSwsFormat(int videoPixelMode) { bool MediaEngine::stepVideo(int videoPixelMode) { // if video engine is broken, force to add timestamp m_videopts += 3003; - +#ifdef USE_FFMPEG if (!m_pFormatCtx) return false; if (!m_pCodecCtx) return false; -#ifdef USE_FFMPEG updateSwsFormat(videoPixelMode); // TODO: Technically we could set this to frameWidth instead of m_desWidth for better perf. // Update the linesize for the new format too. We started with the largest size, so it should fit.