libs/gst/base/gstbasetransform.c: Print element name with g_warning() if there's a problem with the unit size.

Original commit message from CVS:
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_transform_size):
Print element name with g_warning() if there's a problem
with the unit size.
This commit is contained in:
Tim-Philipp Müller 2008-01-08 21:13:58 +00:00
parent 16fe8b9626
commit 58338a041b
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2008-01-08 Tim-Philipp Müller <tim at centricular dot net>
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_transform_size):
Print element name with g_warning() if there's a problem
with the unit size.
2008-01-07 David Schleef <ds@schleef.org>
Patch by: Damien Lespiau <damien.lespiau@gmail.com>

View file

@ -526,20 +526,21 @@ gst_base_transform_transform_size (GstBaseTransform * trans,
no_in_size:
{
GST_DEBUG_OBJECT (trans, "could not get in_size");
g_warning ("could not get in_size");
g_warning ("%s: could not get in_size", GST_ELEMENT_NAME (trans));
return FALSE;
}
no_multiple:
{
GST_DEBUG_OBJECT (trans, "Size %u is not a multiple of unit size %u", size,
inunitsize);
g_warning ("Size %u is not a multiple of unit size %u", size, inunitsize);
g_warning ("%s: size %u is not a multiple of unit size %u",
GST_ELEMENT_NAME (trans), size, inunitsize);
return FALSE;
}
no_out_size:
{
GST_DEBUG_OBJECT (trans, "could not get out_size");
g_warning ("could not get out_size");
g_warning ("%s: could not get out_size", GST_ELEMENT_NAME (trans));
return FALSE;
}
}