From c9ee5a4b87350dc1e9a99e4134ef8075c2949758 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 3 Mar 2015 13:45:46 -0500 Subject: [PATCH] glfilter: Get rid of uploader if caps have changed We need to update the uploader format if that caps have changed. https://bugzilla.gnome.org/show_bug.cgi?id=745549 --- gst-libs/gst/gl/gstglfilter.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index e74166fc80..6700da5694 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -865,6 +865,13 @@ gst_gl_filter_set_caps (GstBaseTransform * bt, GstCaps * incaps, goto error; } + if (filter->out_caps && !gst_caps_is_equal (filter->out_caps, outcaps)) { + if (filter->upload) { + gst_object_unref (filter->upload); + filter->upload = NULL; + } + } + gst_caps_replace (&filter->out_caps, outcaps); GST_DEBUG ("set_caps %dx%d", GST_VIDEO_INFO_WIDTH (&filter->out_info),