logging: fix unused variable warning when disabling debug logs.
authorStefan Kost <ensonic@users.sf.net>
Wed, 15 Apr 2009 20:33:20 +0000 (23:33 +0300)
committerStefan Kost <ensonic@users.sf.net>
Wed, 15 Apr 2009 20:35:35 +0000 (23:35 +0300)
The var was NULL anyway, bacause of the ifdefs there, the message makes no
sense including it.

libs/gst/base/gstbasetransform.c

index 5cf284b..7b7dd79 100644 (file)
@@ -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;
   }