mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 21:46:22 +00:00
basetransform: move unused variable in the #if 0 block.
That variable is only used by the code which has been if 0'd
This commit is contained in:
parent
971755842d
commit
9bf1d7247a
1 changed files with 7 additions and 1 deletions
|
@ -975,14 +975,17 @@ static gboolean
|
||||||
gst_base_transform_acceptcaps (GstPad * pad, GstCaps * caps)
|
gst_base_transform_acceptcaps (GstPad * pad, GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstBaseTransform *trans;
|
GstBaseTransform *trans;
|
||||||
|
#if 0
|
||||||
GstPad *otherpad;
|
GstPad *otherpad;
|
||||||
|
#endif
|
||||||
GstCaps *othercaps = NULL;
|
GstCaps *othercaps = NULL;
|
||||||
gboolean ret = TRUE;
|
gboolean ret = TRUE;
|
||||||
|
|
||||||
trans = GST_BASE_TRANSFORM (gst_pad_get_parent (pad));
|
trans = GST_BASE_TRANSFORM (gst_pad_get_parent (pad));
|
||||||
otherpad = (pad == trans->srcpad) ? trans->sinkpad : trans->srcpad;
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
otherpad = (pad == trans->srcpad) ? trans->sinkpad : trans->srcpad;
|
||||||
|
|
||||||
/* we need fixed caps for the check, fall back to the default implementation
|
/* we need fixed caps for the check, fall back to the default implementation
|
||||||
* if we don't */
|
* if we don't */
|
||||||
if (!gst_caps_is_fixed (caps))
|
if (!gst_caps_is_fixed (caps))
|
||||||
|
@ -1025,8 +1028,11 @@ gst_base_transform_acceptcaps (GstPad * pad, GstCaps * caps)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
#if 0
|
||||||
|
/* We know it's always NULL since we never use it */
|
||||||
if (othercaps)
|
if (othercaps)
|
||||||
gst_caps_unref (othercaps);
|
gst_caps_unref (othercaps);
|
||||||
|
#endif
|
||||||
gst_object_unref (trans);
|
gst_object_unref (trans);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue