From 22a69b49a38f1f632190224b4d06224046078495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Tue, 21 Apr 2009 20:41:23 +0100 Subject: [PATCH] audioresample: Fix unused variable in compilation with --disable-gst-debug Fixes: #579668 --- gst/audioresample/gstaudioresample.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c index 1ce7364671..0cae09e83c 100644 --- a/gst/audioresample/gstaudioresample.c +++ b/gst/audioresample/gstaudioresample.c @@ -521,14 +521,13 @@ gst_audio_resample_transform_size (GstBaseTransform * base, GstPadDirection direction, GstCaps * caps, guint size, GstCaps * othercaps, guint * othersize) { - GstAudioResample *resample = GST_AUDIO_RESAMPLE (base); GstCaps *srccaps, *sinkcaps; gboolean ret = TRUE; guint32 ratio_den, ratio_num; gint inrate, outrate, gcd; gint width; - GST_LOG_OBJECT (resample, "asked to transform size %d in direction %s", + GST_LOG_OBJECT (base, "asked to transform size %d in direction %s", size, direction == GST_PAD_SINK ? "SINK" : "SRC"); if (direction == GST_PAD_SINK) { sinkcaps = caps; @@ -542,7 +541,7 @@ gst_audio_resample_transform_size (GstBaseTransform * base, gst_audio_resample_parse_caps (caps, othercaps, &width, NULL, &inrate, &outrate, NULL); if (G_UNLIKELY (!ret)) { - GST_ERROR_OBJECT (resample, "Wrong caps"); + GST_ERROR_OBJECT (base, "Wrong caps"); return FALSE; } @@ -568,7 +567,7 @@ gst_audio_resample_transform_size (GstBaseTransform * base, size *= fac; } - GST_LOG_OBJECT (resample, "transformed size %d to %d", size, *othersize); + GST_LOG_OBJECT (base, "transformed size %d to %d", size, *othersize); return ret; }