mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
audioresample: fix after merge
This commit is contained in:
parent
246622b1e8
commit
d679dd2c54
1 changed files with 0 additions and 35 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue