gl/basesrc: call gl_stop when shutting down

Fixes multiple leaks
This commit is contained in:
Matthew Waters 2019-12-12 18:59:10 +11:00
parent 19e4d1a93c
commit 9461d178ea

View file

@ -423,8 +423,12 @@ gst_gl_base_src_stop (GstBaseSrc * basesrc)
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);
}
src->context = NULL;
return TRUE;