glcontext/cocoa: avoid destroying a possibly 0 GSource id

This commit is contained in:
Matthew Waters 2015-01-22 21:43:51 +11:00
parent e10d2417e2
commit 4fc554054c

View file

@ -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;
}