From 46db28ac2cbddbcc505be8f0376c85c39f3bfbc9 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 31 Jul 2014 18:36:58 +1000 Subject: [PATCH] gl/x11: silence runtime warning g_main_loop_quit: assertion 'loop != NULL' failed --- gst-libs/gst/gl/x11/gstglwindow_x11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/x11/gstglwindow_x11.c b/gst-libs/gst/gl/x11/gstglwindow_x11.c index 7e3e0d78b5..c576f259f8 100644 --- a/gst-libs/gst/gl/x11/gstglwindow_x11.c +++ b/gst-libs/gst/gl/x11/gstglwindow_x11.c @@ -619,7 +619,8 @@ gst_gl_window_x11_quit (GstGLWindow * window) GST_LOG ("sending quit"); - g_main_loop_quit (window_x11->loop); + if (window_x11->loop) + g_main_loop_quit (window_x11->loop); GST_LOG ("quit sent"); }