mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
libs/gst/base/gstbasetransform.c: Forgot to remove two unneeded unrefs.
Original commit message from CVS: * libs/gst/base/gstbasetransform.c: (gst_base_transform_buffer_alloc): Forgot to remove two unneeded unrefs. Simplify a check _is_equal allready checks the obvious case.
This commit is contained in:
parent
8ba2c99735
commit
201bdf7e27
2 changed files with 9 additions and 8 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-06-22 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* libs/gst/base/gstbasetransform.c:
|
||||
(gst_base_transform_buffer_alloc):
|
||||
Forgot to remove two unneeded unrefs.
|
||||
Simplify a check _is_equal allready checks the obvious case.
|
||||
|
||||
2006-06-22 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* docs/design/part-block.txt:
|
||||
|
|
|
@ -1049,13 +1049,8 @@ gst_base_transform_buffer_alloc (GstPad * pad, guint64 offset, guint size,
|
|||
goto not_configured;
|
||||
|
||||
sinkcaps = GST_PAD_CAPS (trans->sinkpad);
|
||||
if (sinkcaps != NULL) {
|
||||
if (sinkcaps != caps || !gst_caps_is_equal (sinkcaps, caps)) {
|
||||
gst_caps_unref (sinkcaps);
|
||||
gst_caps_unref (srccaps);
|
||||
goto not_configured;
|
||||
}
|
||||
}
|
||||
if (sinkcaps != NULL && !gst_caps_is_equal (sinkcaps, caps))
|
||||
goto not_configured;
|
||||
|
||||
GST_DEBUG_OBJECT (trans, "calling transform_size");
|
||||
if (!gst_base_transform_transform_size (trans,
|
||||
|
@ -1082,7 +1077,6 @@ gst_base_transform_buffer_alloc (GstPad * pad, guint64 offset, guint size,
|
|||
goto not_configured;
|
||||
|
||||
srccaps = GST_PAD_CAPS (trans->srcpad);
|
||||
|
||||
if (!gst_base_transform_transform_size (trans,
|
||||
GST_PAD_DIRECTION (trans->srcpad), srccaps, GST_BUFFER_SIZE (*buf),
|
||||
sinkcaps, &new_size))
|
||||
|
|
Loading…
Reference in a new issue