mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
audioresample: Fix unused variable in compilation with --disable-gst-debug
Fixes: #579668
This commit is contained in:
parent
e200e29f84
commit
22a69b49a3
1 changed files with 3 additions and 4 deletions
|
@ -521,14 +521,13 @@ gst_audio_resample_transform_size (GstBaseTransform * base,
|
||||||
GstPadDirection direction, GstCaps * caps, guint size, GstCaps * othercaps,
|
GstPadDirection direction, GstCaps * caps, guint size, GstCaps * othercaps,
|
||||||
guint * othersize)
|
guint * othersize)
|
||||||
{
|
{
|
||||||
GstAudioResample *resample = GST_AUDIO_RESAMPLE (base);
|
|
||||||
GstCaps *srccaps, *sinkcaps;
|
GstCaps *srccaps, *sinkcaps;
|
||||||
gboolean ret = TRUE;
|
gboolean ret = TRUE;
|
||||||
guint32 ratio_den, ratio_num;
|
guint32 ratio_den, ratio_num;
|
||||||
gint inrate, outrate, gcd;
|
gint inrate, outrate, gcd;
|
||||||
gint width;
|
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");
|
size, direction == GST_PAD_SINK ? "SINK" : "SRC");
|
||||||
if (direction == GST_PAD_SINK) {
|
if (direction == GST_PAD_SINK) {
|
||||||
sinkcaps = caps;
|
sinkcaps = caps;
|
||||||
|
@ -542,7 +541,7 @@ gst_audio_resample_transform_size (GstBaseTransform * base,
|
||||||
gst_audio_resample_parse_caps (caps, othercaps, &width, NULL, &inrate,
|
gst_audio_resample_parse_caps (caps, othercaps, &width, NULL, &inrate,
|
||||||
&outrate, NULL);
|
&outrate, NULL);
|
||||||
if (G_UNLIKELY (!ret)) {
|
if (G_UNLIKELY (!ret)) {
|
||||||
GST_ERROR_OBJECT (resample, "Wrong caps");
|
GST_ERROR_OBJECT (base, "Wrong caps");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -568,7 +567,7 @@ gst_audio_resample_transform_size (GstBaseTransform * base,
|
||||||
size *= fac;
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue