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"); }