imagefreeze: do not cache caps

Upstream elements like videoflip can transform caps, such as changing width and height.
When an imagefreeze downstream receives an ACCEPT_CAPS query it will NOW return
all caps that it can accept.

https://bugzilla.gnome.org/show_bug.cgi?id=778389
This commit is contained in:
Nick Kallen 2017-02-09 12:55:32 +01:00 committed by Sebastian Dröge
parent 2987e66f22
commit f9e4fae0b3

View file

@ -265,10 +265,6 @@ gst_image_freeze_sink_getcaps (GstImageFreeze * self, GstCaps * filter)
GstPad *pad;
pad = self->sinkpad;
ret = gst_pad_get_current_caps (pad);
if (ret != NULL) {
goto done;
}
if (filter) {
filter = gst_caps_copy (filter);