mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Fix build without FFmpeg.
This commit is contained in:
parent
a79a1b46f7
commit
dd89e6fbe0
6
ssnes.c
6
ssnes.c
@ -189,9 +189,11 @@ static void video_frame(const uint16_t *data, unsigned width, unsigned height)
|
|||||||
|
|
||||||
static void video_cached_frame(void)
|
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;
|
bool recording = g_extern.recording;
|
||||||
g_extern.recording = false;
|
g_extern.recording = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Not 100% safe, since the library might have
|
// Not 100% safe, since the library might have
|
||||||
// freed the memory, but no known implementations do this :D
|
// 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);
|
g_extern.frame_cache.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_FFMPEG
|
||||||
g_extern.recording = recording;
|
g_extern.recording = recording;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool audio_flush(const int16_t *data, unsigned samples)
|
static bool audio_flush(const int16_t *data, unsigned samples)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user