mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Only allow duping if ffmpeg is compiled in.
This commit is contained in:
parent
b907cb667a
commit
63274f6f61
@ -328,8 +328,13 @@ static bool environment_cb(unsigned cmd, void *data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SNES_ENVIRONMENT_GET_CAN_DUPE:
|
case SNES_ENVIRONMENT_GET_CAN_DUPE:
|
||||||
|
#ifdef HAVE_FFMPEG
|
||||||
*(bool*)data = true;
|
*(bool*)data = true;
|
||||||
SSNES_LOG("Environ GET_CAN_DUPE: true\n");
|
SSNES_LOG("Environ GET_CAN_DUPE: true\n");
|
||||||
|
#else
|
||||||
|
*(bool*)data = false;
|
||||||
|
SSNES_LOG("Environ GET_CAN_DUPE: false\n");
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SNES_ENVIRONMENT_SET_NEED_FULLPATH:
|
case SNES_ENVIRONMENT_SET_NEED_FULLPATH:
|
||||||
|
5
ssnes.c
5
ssnes.c
@ -166,12 +166,13 @@ static void video_frame(const uint16_t *data, unsigned width, unsigned height)
|
|||||||
if (!g_extern.video_active)
|
if (!g_extern.video_active)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool is_dupe = !data;
|
|
||||||
adjust_crop(&data, &height);
|
adjust_crop(&data, &height);
|
||||||
|
|
||||||
// Slightly messy code,
|
// Slightly messy code,
|
||||||
// but we really need to do processing before blocking on VSync for best possible scheduling.
|
// but we really need to do processing before blocking on VSync for best possible scheduling.
|
||||||
#ifdef HAVE_FFMPEG
|
#ifdef HAVE_FFMPEG
|
||||||
|
bool is_dupe = !data;
|
||||||
|
|
||||||
if (g_extern.recording && (!g_extern.filter.active || !g_settings.video.post_filter_record || is_dupe))
|
if (g_extern.recording && (!g_extern.filter.active || !g_settings.video.post_filter_record || is_dupe))
|
||||||
{
|
{
|
||||||
struct ffemu_video_data ffemu_data = {0};
|
struct ffemu_video_data ffemu_data = {0};
|
||||||
@ -182,10 +183,10 @@ static void video_frame(const uint16_t *data, unsigned width, unsigned height)
|
|||||||
ffemu_data.is_dupe = is_dupe;
|
ffemu_data.is_dupe = is_dupe;
|
||||||
ffemu_push_video(g_extern.rec, &ffemu_data);
|
ffemu_push_video(g_extern.rec, &ffemu_data);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (is_dupe)
|
if (is_dupe)
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
const char *msg = msg_queue_pull(g_extern.msg_queue);
|
const char *msg = msg_queue_pull(g_extern.msg_queue);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user