From 58338a041ba974b4a4aec501d7fb013038fbb4b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 8 Jan 2008 21:13:58 +0000 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ libs/gst/base/gstbasetransform.c | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c236069f05..b8996eab68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-01-08 Tim-Philipp Müller + + * 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 Patch by: Damien Lespiau diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index 40b52d29b9..fc9f9671c2 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -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; } }