Skip to content

Commit

Permalink
Fix issue #15595. (#15596)
Browse files Browse the repository at this point in the history
Co-authored-by: miguedevel <tete333@hitmail.com>
  • Loading branch information
miguedevel and miguedevel authored Aug 15, 2023
1 parent f3e5bb9 commit 2f9c4eb
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions runloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -2488,8 +2488,16 @@ bool runloop_environment_cb(unsigned cmd, void *data)
msg_hash_to_str(MSG_RESTARTING_RECORDING_DUE_TO_DRIVER_REINIT),
2, 180, false,
NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
command_event(CMD_EVENT_RECORD_DEINIT, NULL);
command_event(CMD_EVENT_RECORD_INIT, NULL);
if (recording_st->streaming_enable)
{
command_event(CMD_EVENT_STREAMING_TOGGLE, NULL);
command_event(CMD_EVENT_STREAMING_TOGGLE, NULL);
}
else
{
command_event(CMD_EVENT_RECORD_DEINIT, NULL);
command_event(CMD_EVENT_RECORD_INIT, NULL);
}
}

/* Hide mouse cursor in fullscreen mode */
Expand Down Expand Up @@ -2690,8 +2698,16 @@ bool runloop_environment_cb(unsigned cmd, void *data)
msg_hash_to_str(MSG_RESTARTING_RECORDING_DUE_TO_DRIVER_REINIT),
2, 180, false,
NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
command_event(CMD_EVENT_RECORD_DEINIT, NULL);
command_event(CMD_EVENT_RECORD_INIT, NULL);
if (recording_st->streaming_enable)
{
command_event(CMD_EVENT_STREAMING_TOGGLE, NULL);
command_event(CMD_EVENT_STREAMING_TOGGLE, NULL);
}
else
{
command_event(CMD_EVENT_RECORD_DEINIT, NULL);
command_event(CMD_EVENT_RECORD_INIT, NULL);
}
}

/* Hide mouse cursor in fullscreen after
Expand Down

0 comments on commit 2f9c4eb

Please sign in to comment.