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