From 01248b1864c07681c97ec8d7916c7b4747882138 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 22 Jan 2015 21:43:51 +1100 Subject: [PATCH] glcontext/cocoa: avoid destroying a possibly 0 GSource id --- gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m index 109504dd00..341f02b5c9 100644 --- a/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglcontext_cocoa.m @@ -363,8 +363,10 @@ gst_gl_context_cocoa_create_context (GstGLContext *context, GstGLAPI gl_api, }); if (!context_cocoa->priv->gl_context) { +#ifndef GSTREAMER_GLIB_COCOA_NSAPPLICATION g_source_remove (priv->source_id); priv->source_id = 0; +#endif return FALSE; }