summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <ystreet00@gmail.com>2014-07-31 18:36:58 +1000
committerMatthew Waters <ystreet00@gmail.com>2014-07-31 18:36:58 +1000
commit46db28ac2cbddbcc505be8f0376c85c39f3bfbc9 (patch)
tree9f5384fbd7a0ac62447c961f7af1ca6ae478a132
parentacb38a2a79588e223b7227638c7bd36590d0bfb1 (diff)
gl/x11: silence runtime warning
g_main_loop_quit: assertion 'loop != NULL' failed
-rw-r--r--gst-libs/gst/gl/x11/gstglwindow_x11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/x11/gstglwindow_x11.c b/gst-libs/gst/gl/x11/gstglwindow_x11.c
index 7e3e0d78b..c576f259f 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");
}