controller: adapt to controller api changes
authorStefan Sauer <ensonic@users.sf.net>
Fri, 20 Jan 2012 10:40:00 +0000 (11:40 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Fri, 20 Jan 2012 13:47:32 +0000 (14:47 +0100)
Don't use the convenience api for control sources.

tests/icles/pitch-test.c

index b5944b42d862ff549aeb1d50ada505a9cffc9ba3..96a56b481f4cdbbe0cb00b71f7548deb641a4464 100644 (file)
@@ -71,7 +71,8 @@ main (int argc, char **argv)
   csource = gst_interpolation_control_source_new ();
   g_object_set (csource, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL);
 
-  gst_object_set_control_source (pitch, "pitch", GST_CONTROL_SOURCE (csource));
+  gst_object_set_control_binding (pitch,
+      gst_control_binding_new (pitch, "pitch", GST_CONTROL_SOURCE (csource)));
   cs = (GstTimedValueControlSource *) csource;
 
   for (i = 0; i < 100; ++i) {