From 9b6be3522234d02620ac7c655abce39617d6a697 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 2 Feb 2016 16:19:54 +1100 Subject: [PATCH] glbasefilter: always call gl_start when not called already Fixes elements transitioning out of passthrough mode using GL resources that hadn'e been allocated yet. --- gst-libs/gst/gl/gstglbasefilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglbasefilter.c b/gst-libs/gst/gl/gstglbasefilter.c index 2e3da4540c..eca40bcdd3 100644 --- a/gst-libs/gst/gl/gstglbasefilter.c +++ b/gst-libs/gst/gl/gstglbasefilter.c @@ -382,7 +382,7 @@ gst_gl_base_filter_decide_allocation (GstBaseTransform * trans, GST_OBJECT_UNLOCK (filter->display); } - if (new_context) { + if (new_context || !filter->priv->gl_started) { if (filter->priv->gl_started) gst_gl_context_thread_add (filter->context, gst_gl_base_filter_gl_stop, filter);