diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-12-17 15:04:44 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-12-17 15:04:44 +0100 |
commit | 9f1257330db0928bd86de541689cf67da51694fa (patch) | |
tree | fb08c6a6727bb4895f2becba9289f161aa42211f /gst/videoparsers/gsth263parse.c | |
parent | 7faf96eb14c71a668c8c0a2f5a6cf952f96b411d (diff) | |
download | gstreamer-plugins-bad-9f1257330db0928bd86de541689cf67da51694fa.tar.gz |
videoparsers: Use the peer caps for restrictions instead of the srcpad allowed caps
Otherwise we will intersect with the srcpad template caps and add all the caps fields
that the parser will ever set, no matter if downstream restricts this field or not.
This requires upstream to set this field on the caps to successfully negotiate.
https://bugzilla.gnome.org/show_bug.cgi?id=690184
Diffstat (limited to 'gst/videoparsers/gsth263parse.c')
-rw-r--r-- | gst/videoparsers/gsth263parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videoparsers/gsth263parse.c b/gst/videoparsers/gsth263parse.c index a2aea5411..4b0c29dbd 100644 --- a/gst/videoparsers/gsth263parse.c +++ b/gst/videoparsers/gsth263parse.c @@ -356,7 +356,7 @@ gst_h263_parse_get_sink_caps (GstBaseParse * parse, GstCaps * filter) GstCaps *res; templ = gst_pad_get_pad_template_caps (GST_BASE_PARSE_SINK_PAD (parse)); - peercaps = gst_pad_get_allowed_caps (GST_BASE_PARSE_SRC_PAD (parse)); + peercaps = gst_pad_peer_query_caps (GST_BASE_PARSE_SRC_PAD (parse), filter); if (peercaps) { guint i, n; |