[gst-cvs] gstreamer: logging: fix unused variable warning when disabling debug logs.
Stefan Kost
ensonic at kemper.freedesktop.org
Wed Apr 15 13:48:11 PDT 2009
Module: gstreamer
Branch: master
Commit: e778c5fd8bb31516298c384872e376e602af4166
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=e778c5fd8bb31516298c384872e376e602af4166
Author: Stefan Kost <ensonic at users.sf.net>
Date: Wed Apr 15 23:33:20 2009 +0300
logging: fix unused variable warning when disabling debug logs.
The var was NULL anyway, bacause of the ifdefs there, the message makes no
sense including it.
---
libs/gst/base/gstbasetransform.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c
index 5cf284b..7b7dd79 100644
--- a/libs/gst/base/gstbasetransform.c
+++ b/libs/gst/base/gstbasetransform.c
@@ -979,8 +979,8 @@ gst_base_transform_acceptcaps (GstPad * pad, GstCaps * caps)
GstBaseTransform *trans;
#if 0
GstPad *otherpad;
-#endif
GstCaps *othercaps = NULL;
+#endif
gboolean ret = TRUE;
trans = GST_BASE_TRANSFORM (gst_pad_get_parent (pad));
@@ -1044,8 +1044,7 @@ no_transform_possible:
{
GST_WARNING_OBJECT (trans,
"transform could not transform %" GST_PTR_FORMAT
- " in anything we support (othercaps %" GST_PTR_FORMAT ")",
- caps, othercaps);
+ " in anything we support", caps);
ret = FALSE;
goto done;
}
More information about the Gstreamer-commits
mailing list