audioresample: fix after merge

This commit is contained in:
Wim Taymans 2011-08-17 10:47:38 +02:00
parent 246622b1e8
commit d679dd2c54

View file

@ -1360,41 +1360,6 @@ gst_audio_resample_set_property (GObject * object, guint prop_id,
quality, resample->fp);
GST_BASE_TRANSFORM_UNLOCK (resample);
break;
case PROP_FILTER_LENGTH:{
gint filter_length = g_value_get_int (value);
GST_BASE_TRANSFORM_LOCK (resample);
if (filter_length <= 8)
quality = 0;
else if (filter_length <= 16)
quality = 1;
else if (filter_length <= 32)
quality = 2;
else if (filter_length <= 48)
quality = 3;
else if (filter_length <= 64)
quality = 4;
else if (filter_length <= 80)
quality = 5;
else if (filter_length <= 96)
quality = 6;
else if (filter_length <= 128)
quality = 7;
else if (filter_length <= 160)
quality = 8;
else if (filter_length <= 192)
quality = 9;
else
quality = 10;
GST_DEBUG_OBJECT (resample, "new quality %d", quality);
gst_audio_resample_update_state (resample, resample->width,
resample->channels, resample->inrate, resample->outrate,
quality, resample->fp);
GST_BASE_TRANSFORM_UNLOCK (resample);
break;
}
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;