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/gstmpeg4videoparse.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/gstmpeg4videoparse.c')
-rw-r--r-- | gst/videoparsers/gstmpeg4videoparse.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gst/videoparsers/gstmpeg4videoparse.c b/gst/videoparsers/gstmpeg4videoparse.c index 6b3272055..569801984 100644 --- a/gst/videoparsers/gstmpeg4videoparse.c +++ b/gst/videoparsers/gstmpeg4videoparse.c @@ -187,6 +187,7 @@ gst_mpeg4vparse_init (GstMpeg4VParse * parse) parse->last_report = GST_CLOCK_TIME_NONE; gst_base_parse_set_pts_interpolation (GST_BASE_PARSE (parse), FALSE); + GST_PAD_SET_ACCEPT_INTERSECT (GST_BASE_PARSE_SINK_PAD (parse)); } static void @@ -867,13 +868,7 @@ gst_mpeg4vparse_get_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; } |