mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
gl/basesrc: call gl_stop when shutting down
Fixes multiple leaks
This commit is contained in:
parent
19e4d1a93c
commit
9461d178ea
1 changed files with 5 additions and 1 deletions
|
@ -423,8 +423,12 @@ gst_gl_base_src_stop (GstBaseSrc * basesrc)
|
||||||
|
|
||||||
gst_caps_replace (&src->out_caps, NULL);
|
gst_caps_replace (&src->out_caps, NULL);
|
||||||
|
|
||||||
if (src->context)
|
if (src->context) {
|
||||||
|
if (src->priv->gl_started)
|
||||||
|
gst_gl_context_thread_add (src->context, gst_gl_base_src_gl_stop, src);
|
||||||
|
|
||||||
gst_object_unref (src->context);
|
gst_object_unref (src->context);
|
||||||
|
}
|
||||||
src->context = NULL;
|
src->context = NULL;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue