summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-04-03 12:12:08 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-04-03 12:57:24 +0200
commit9bf1d7247a3c550d23ff9a3aa1e628b159428ee8 (patch)
treee0a7e9b4a9868ed44c6ae9dad228608e5380092d
parent971755842da910036135891bc0530b2abcf56de5 (diff)
basetransform: move unused variable in the #if 0 block.
That variable is only used by the code which has been if 0'd
-rw-r--r--libs/gst/base/gstbasetransform.c8
1 files changed, 7 insertions, 1 deletions
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;