Skip to content

Commit

Permalink
winegstreamer: Ask GStreamer to stop messing with signal handlers.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbernon authored and julliard committed Jan 30, 2024
1 parent 268f3ad commit 02921e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dlls/winegstreamer/unixlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,13 @@ NTSTATUS wg_init_gstreamer(void *arg)
char **argv = args;
GError *err;

/* GStreamer installs a temporary SEGV handler when it loads plugins
* to initialize its registry calling exit(-1) when any fault is caught.
* We need to make sure any signal reaches our signal handlers to catch
* and handle them, or eventually propagate the exceptions to the user.
*/
gst_segtrap_set_enabled(false);

if (!gst_init_check(&argc, &argv, &err))
{
fprintf(stderr, "winegstreamer: failed to initialize GStreamer: %s\n", err->message);
Expand Down

0 comments on commit 02921e4

Please sign in to comment.