From 9bf1d7247a3c550d23ff9a3aa1e628b159428ee8 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 3 Apr 2009 12:12:08 +0200 Subject: basetransform: move unused variable in the #if 0 block. That variable is only used by the code which has been if 0'd --- libs/gst/base/gstbasetransform.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index 42580ae0d8..edf5ce04be 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -975,14 +975,17 @@ static gboolean gst_base_transform_acceptcaps (GstPad * pad, GstCaps * caps) { GstBaseTransform *trans; +#if 0 GstPad *otherpad; +#endif GstCaps *othercaps = NULL; gboolean ret = TRUE; trans = GST_BASE_TRANSFORM (gst_pad_get_parent (pad)); - otherpad = (pad == trans->srcpad) ? trans->sinkpad : trans->srcpad; #if 0 + otherpad = (pad == trans->srcpad) ? trans->sinkpad : trans->srcpad; + /* we need fixed caps for the check, fall back to the default implementation * if we don't */ if (!gst_caps_is_fixed (caps)) @@ -1025,8 +1028,11 @@ gst_base_transform_acceptcaps (GstPad * pad, GstCaps * caps) #endif done: +#if 0 + /* We know it's always NULL since we never use it */ if (othercaps) gst_caps_unref (othercaps); +#endif gst_object_unref (trans); return ret; -- cgit v1.2.3