mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-23 18:06:36 +00:00
[record] further cleanups of the workflow
This commit is contained in:
parent
6351e80946
commit
356d4e2c5e
@ -2170,19 +2170,18 @@ TODO: Add a setting for these tweaks */
|
||||
break;
|
||||
case CMD_EVENT_RECORD_DEINIT:
|
||||
{
|
||||
recording_set_state(false);
|
||||
streaming_set_state(false);
|
||||
if (!recording_deinit())
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case CMD_EVENT_RECORD_INIT:
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -2699,8 +2699,6 @@ static int action_ok_start_streaming(const char *path,
|
||||
static int action_ok_stop_recording(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
recording_set_state(false);
|
||||
streaming_set_state(false);
|
||||
command_event(CMD_EVENT_RECORD_DEINIT, NULL);
|
||||
return generic_action_ok_command(CMD_EVENT_RESUME);
|
||||
}
|
||||
@ -2708,8 +2706,6 @@ static int action_ok_stop_recording(const char *path,
|
||||
static int action_ok_stop_streaming(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
recording_set_state(false);
|
||||
streaming_set_state(false);
|
||||
command_event(CMD_EVENT_RECORD_DEINIT, NULL);
|
||||
return generic_action_ok_command(CMD_EVENT_RESUME);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user