mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
glcontext/cocoa: avoid destroying a possibly 0 GSource id
This commit is contained in:
parent
0e835bc374
commit
01248b1864
1 changed files with 2 additions and 0 deletions
|
@ -363,8 +363,10 @@ gst_gl_context_cocoa_create_context (GstGLContext *context, GstGLAPI gl_api,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!context_cocoa->priv->gl_context) {
|
if (!context_cocoa->priv->gl_context) {
|
||||||
|
#ifndef GSTREAMER_GLIB_COCOA_NSAPPLICATION
|
||||||
g_source_remove (priv->source_id);
|
g_source_remove (priv->source_id);
|
||||||
priv->source_id = 0;
|
priv->source_id = 0;
|
||||||
|
#endif
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue