controller: port to new interpolation-mode api
authorStefan Sauer <ensonic@users.sf.net>
Mon, 19 Dec 2011 22:51:19 +0000 (23:51 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Mon, 19 Dec 2011 22:51:19 +0000 (23:51 +0100)
tests/icles/pitch-test.c

index af1a415dfe145565dbf37b6ba3e49d2b1d323710..2936dd0d3b8bba1cc00dd36a528e5e0502dd594b 100644 (file)
@@ -74,8 +74,7 @@ main (int argc, char **argv)
   }
 
   csource = gst_interpolation_control_source_new ();
-  gst_interpolation_control_source_set_interpolation_mode (csource,
-      GST_INTERPOLATE_LINEAR);
+  g_object_set (csource, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL);
 
   gst_controller_set_control_source (ctl, "pitch",
       GST_CONTROL_SOURCE (csource));