controller: move from control-binding to control-binding-direct

This commit is contained in:
Stefan Sauer 2012-01-21 20:08:36 +01:00
parent 840a3a5b36
commit 20574b09a3

View file

@ -72,7 +72,8 @@ main (int argc, char **argv)
g_object_set (csource, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL);
gst_object_add_control_binding (pitch,
gst_control_binding_new (pitch, "pitch", GST_CONTROL_SOURCE (csource)));
gst_control_binding_direct_new (pitch, "pitch",
GST_CONTROL_SOURCE (csource)));
cs = (GstTimedValueControlSource *) csource;
for (i = 0; i < 100; ++i) {