mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
[recording] handle failure to start recording properly
This commit is contained in:
parent
a0cab184db
commit
6351e80946
@ -2179,7 +2179,12 @@ TODO: Add a setting for these tweaks */
|
|||||||
command_event(CMD_EVENT_RECORD_DEINIT, NULL);
|
command_event(CMD_EVENT_RECORD_DEINIT, NULL);
|
||||||
recording_set_state(true);
|
recording_set_state(true);
|
||||||
if (!recording_init())
|
if (!recording_init())
|
||||||
|
{
|
||||||
|
command_event(CMD_EVENT_RECORD_DEINIT, NULL);
|
||||||
|
recording_set_state(false);
|
||||||
|
streaming_set_state(false);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CMD_EVENT_HISTORY_DEINIT:
|
case CMD_EVENT_HISTORY_DEINIT:
|
||||||
|
@ -356,8 +356,6 @@ bool recording_init()
|
|||||||
(float)av_info->timing.fps,
|
(float)av_info->timing.fps,
|
||||||
(float)av_info->timing.sample_rate);
|
(float)av_info->timing.sample_rate);
|
||||||
|
|
||||||
RARCH_LOG("STREAM!!! %d\n", streaming_is_enabled());
|
|
||||||
|
|
||||||
if (!string_is_empty(global->record.path))
|
if (!string_is_empty(global->record.path))
|
||||||
strlcpy(output, global->record.path, sizeof(output));
|
strlcpy(output, global->record.path, sizeof(output));
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user