mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
videoparsers: Make sure the caps are actually writable before changing them
This commit is contained in:
parent
9f1257330d
commit
f623a78924
5 changed files with 5 additions and 0 deletions
|
@ -409,6 +409,7 @@ gst_dirac_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
|
||||
|
|
|
@ -371,6 +371,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
|
||||
|
|
|
@ -1891,6 +1891,7 @@ gst_h264_parse_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
|
||||
|
|
|
@ -874,6 +874,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
|
||||
|
|
|
@ -873,6 +873,7 @@ gst_mpegv_parse_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
|
||||
|
|
Loading…
Reference in a new issue