diff options
author | Wim Taymans <wtaymans@redhat.com> | 2013-12-04 09:13:31 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2013-12-04 09:49:20 +0100 |
commit | 9ac2cee2dba7b125d398efcbbb4606fd1135ae29 (patch) | |
tree | daa28b602ab786597f4c8147b7033088c86fc3b1 /gst/videoparsers/gsth263parse.c | |
parent | e9dd2df3f493431b17661e04d01424c30cf858a2 (diff) | |
download | gstreamer-plugins-bad-9ac2cee2dba7b125d398efcbbb4606fd1135ae29.tar.gz |
videoparsers: use ACCEPT_INTERSECT
We can also accept caps with missing fields.
Diffstat (limited to 'gst/videoparsers/gsth263parse.c')
-rw-r--r-- | gst/videoparsers/gsth263parse.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gst/videoparsers/gsth263parse.c b/gst/videoparsers/gsth263parse.c index 63cfb95fc..e8dfdfbb7 100644 --- a/gst/videoparsers/gsth263parse.c +++ b/gst/videoparsers/gsth263parse.c @@ -91,6 +91,7 @@ gst_h263_parse_class_init (GstH263ParseClass * klass) static void gst_h263_parse_init (GstH263Parse * h263parse) { + GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (h263parse)); } static gboolean @@ -397,13 +398,7 @@ gst_h263_parse_get_sink_caps (GstBaseParse * parse, GstCaps * filter) res = gst_caps_intersect_full (peercaps, templ, GST_CAPS_INTERSECT_FIRST); gst_caps_unref (peercaps); - res = gst_caps_make_writable (res); - - /* Append the template caps because we still want to accept - * caps without any fields in the case upstream does not - * know anything. - */ - gst_caps_append (res, templ); + gst_caps_unref (templ); } else { res = templ; } |