videoaggregator: simplifies and improves sink_get_caps.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Sat, 20 Jun 2015 11:36:27 +0000 (13:36 +0200)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Mon, 22 Jun 2015 22:57:59 +0000 (00:57 +0200)
commit1248b00c80aff2f24ce094a89ec58ce5c172afb8
tree67194b19e22254b2669b861b2a26bb44b5f99c65
parent55a5c5f7df7ef37a2924b23337687bbc83cb7744
videoaggregator: simplifies and improves sink_get_caps.

The problem here was that after removing the formats and
all the things we could convert, we then intersected these
caps with the template caps.

Hence if a subclass offered permissive sink templates
(eg all the possible formats videoconvert handles), but only
one output format, then at negotiation time getcaps returned
caps with the format restricted to that format, even though
we do handle conversion.

https://bugzilla.gnome.org/show_bug.cgi?id=751255
gst-libs/gst/video/gstvideoaggregator.c