diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-08-12 13:23:19 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-08-12 13:23:19 +0200 |
commit | 5c873d86eba1f0b99ac6b601db59c4e63dff3dd5 (patch) | |
tree | 0c6c0ccf524c56c1ca5768c902abaf562c882ef5 | |
parent | 05a13d32aa41505a7fcc587f3848b326085d0944 (diff) |
Disable video processing on error
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | src/ui/new_contact.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/ui/new_contact.c b/src/ui/new_contact.c index b4de414..01e2c56 100644 --- a/src/ui/new_contact.c +++ b/src/ui/new_contact.c @@ -235,19 +235,11 @@ msg_error_cb(UNUSED GstBus *bus, if (!error) fprintf(stderr, "ERROR: Unknown error\n"); else if (error->message) - fprintf(stderr, "ERROR: %s (%d)", error->message, error->code); + fprintf(stderr, "ERROR: %s (%d)\n", error->message, error->code); else fprintf(stderr, "ERROR: Unknown error (%d)\n", error->code); - gst_element_set_state(handle->pipeline, GST_STATE_READY); - - if (!(handle->preview_stack)) - return; - - gtk_stack_set_visible_child( - handle->preview_stack, - handle->fail_box - ); + _disable_video_processing(handle, TRUE); } static void |