Commit 02921e49 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winegstreamer: Ask GStreamer to stop messing with signal handlers.

parent 268f3adc
...@@ -253,6 +253,13 @@ NTSTATUS wg_init_gstreamer(void *arg) ...@@ -253,6 +253,13 @@ NTSTATUS wg_init_gstreamer(void *arg)
char **argv = args; char **argv = args;
GError *err; 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)) if (!gst_init_check(&argc, &argv, &err))
{ {
fprintf(stderr, "winegstreamer: failed to initialize GStreamer: %s\n", err->message); fprintf(stderr, "winegstreamer: failed to initialize GStreamer: %s\n", err->message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment