audioresample: remove transform lock
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 23 Feb 2012 10:10:24 +0000 (11:10 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 23 Feb 2012 10:19:52 +0000 (11:19 +0100)
In this particular case it was not sufficient anyways because the setcaps
function didn't take the transform lock.

gst/audioresample/gstaudioresample.c

index ebd5895aa0288833a9a80b6f550d740b91811828..222d0225c32aeb268171a7d5458e361e9dbbec33 100644 (file)
@@ -1269,14 +1269,13 @@ gst_audio_resample_set_property (GObject * object, guint prop_id,
 
   switch (prop_id) {
     case PROP_QUALITY:
-      GST_BASE_TRANSFORM_LOCK (resample);
+      /* FIXME locking! */
       quality = g_value_get_int (value);
       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);