From e6d5dd04d5185c62b185b776727cb7aeadcb38d8 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Sun, 27 Jul 2014 13:26:00 +1000 Subject: [PATCH] glimagesink: silence gsignal warning instance '0xblah' has no handler with id '13' --- ext/gl/gstglimagesink.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ext/gl/gstglimagesink.c b/ext/gl/gstglimagesink.c index eaea01b2ec..5980ec45e0 100644 --- a/ext/gl/gstglimagesink.c +++ b/ext/gl/gstglimagesink.c @@ -1230,11 +1230,18 @@ gst_glimage_sink_on_draw (GstGLImageSink * gl_sink) static void gst_glimage_sink_on_close (GstGLImageSink * gl_sink) { + GstGLWindow *window; + gst_gl_context_set_error (gl_sink->context, "Output window was closed"); + window = gst_gl_context_get_window (gl_sink->context); + + g_signal_handler_disconnect (window, gl_sink->key_sig_id); + g_signal_handler_disconnect (window, gl_sink->mouse_sig_id); + g_atomic_int_set (&gl_sink->to_quit, 1); - g_signal_handler_disconnect (gl_sink, gl_sink->key_sig_id); - g_signal_handler_disconnect (gl_sink, gl_sink->mouse_sig_id); + + gst_object_unref (window); } static gboolean