From dd89e6fbe0171625cbbe3ae60ade57ff72d32f82 Mon Sep 17 00:00:00 2001 From: Themaister Date: Tue, 18 Oct 2011 19:16:38 +0200 Subject: [PATCH] Fix build without FFmpeg. --- ssnes.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ssnes.c b/ssnes.c index 9f31c656ea..93b4306480 100644 --- a/ssnes.c +++ b/ssnes.c @@ -189,9 +189,11 @@ static void video_frame(const uint16_t *data, unsigned width, unsigned height) static void video_cached_frame(void) { - // Cannot allow FFmpeg recording when pusing dup'ed frames. +#ifdef HAVE_FFMPEG + // Cannot allow FFmpeg recording when pushing duped frames. bool recording = g_extern.recording; g_extern.recording = false; +#endif // Not 100% safe, since the library might have // freed the memory, but no known implementations do this :D @@ -203,7 +205,9 @@ static void video_cached_frame(void) g_extern.frame_cache.height); } +#ifdef HAVE_FFMPEG g_extern.recording = recording; +#endif } static bool audio_flush(const int16_t *data, unsigned samples)