mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
libs/gst/base/gstbasetransform.c: Make sure caps are writable before passing them to gst_caps_append().
Original commit message from CVS: * libs/gst/base/gstbasetransform.c: (gst_base_transform_transform_caps): Make sure caps are writable before passing them to gst_caps_append().
This commit is contained in:
parent
be5f17ca17
commit
19e9145a5c
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-03-05 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* libs/gst/base/gstbasetransform.c:
|
||||
(gst_base_transform_transform_caps):
|
||||
Make sure caps are writable before passing them to
|
||||
gst_caps_append().
|
||||
|
||||
2006-03-04 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/gsterror.h:
|
||||
|
|
|
@ -392,6 +392,7 @@ gst_base_transform_transform_caps (GstBaseTransform * trans,
|
|||
temp = klass->transform_caps (trans, direction, caps);
|
||||
GST_DEBUG_OBJECT (trans, " to: %" GST_PTR_FORMAT, temp);
|
||||
|
||||
temp = gst_caps_make_writable (temp);
|
||||
gst_caps_append (ret, temp);
|
||||
} else {
|
||||
/* we send caps with just one structure to the transform
|
||||
|
@ -405,6 +406,7 @@ gst_base_transform_transform_caps (GstBaseTransform * trans,
|
|||
gst_caps_unref (nth);
|
||||
GST_DEBUG_OBJECT (trans, " to[%d]: %" GST_PTR_FORMAT, i, temp);
|
||||
|
||||
temp = gst_caps_make_writable (temp);
|
||||
gst_caps_append (ret, temp);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue