mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
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:
parent
961e847433
commit
c9ee5a4b87
1 changed files with 7 additions and 0 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue