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:
Wim Taymans 2006-06-22 15:12:50 +00:00
parent 8ba2c99735
commit 201bdf7e27
2 changed files with 9 additions and 8 deletions

View file

@ -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:

View file

@ -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))