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
This commit is contained in:
Nicolas Dufresne 2015-03-03 13:45:46 -05:00 committed by Tim-Philipp Müller
parent 961e847433
commit c9ee5a4b87

View file

@ -865,6 +865,13 @@ gst_gl_filter_set_caps (GstBaseTransform * bt, GstCaps * incaps,
goto error; 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_caps_replace (&filter->out_caps, outcaps);
GST_DEBUG ("set_caps %dx%d", GST_VIDEO_INFO_WIDTH (&filter->out_info), GST_DEBUG ("set_caps %dx%d", GST_VIDEO_INFO_WIDTH (&filter->out_info),