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

This commit is contained in:
Stefan Sauer 2012-01-21 20:06:53 +01:00
parent 5487cb98ef
commit b55d67b1d2
2 changed files with 4 additions and 4 deletions

View file

@ -1731,7 +1731,7 @@ GST_START_TEST (test_controller_usability)
csource = gst_interpolation_control_source_new ();
g_object_set (csource, "mode", GST_INTERPOLATION_MODE_CUBIC, NULL);
gst_object_add_control_binding (GST_OBJECT_CAST (volume),
gst_control_binding_new (GST_OBJECT_CAST (volume), "volume",
gst_control_binding_direct_new (GST_OBJECT_CAST (volume), "volume",
GST_CONTROL_SOURCE (csource)));
cs = (GstTimedValueControlSource *) csource;
@ -1761,7 +1761,7 @@ GST_START_TEST (test_controller_processing)
csource = gst_interpolation_control_source_new ();
g_object_set (csource, "mode", GST_INTERPOLATION_MODE_CUBIC, NULL);
gst_object_add_control_binding (GST_OBJECT_CAST (volume),
gst_control_binding_new (GST_OBJECT_CAST (volume), "volume",
gst_control_binding_direct_new (GST_OBJECT_CAST (volume), "volume",
GST_CONTROL_SOURCE (csource)));
fail_unless (gst_element_set_state (volume,

View file

@ -128,10 +128,10 @@ main (gint argc, gchar ** argv)
csource2 = gst_interpolation_control_source_new ();
gst_object_add_control_binding (GST_OBJECT_CAST (src),
gst_control_binding_new (GST_OBJECT_CAST (src), "volume",
gst_control_binding_direct_new (GST_OBJECT_CAST (src), "volume",
GST_CONTROL_SOURCE (csource1)));
gst_object_add_control_binding (GST_OBJECT_CAST (src),
gst_control_binding_new (GST_OBJECT_CAST (src), "freq",
gst_control_binding_direct_new (GST_OBJECT_CAST (src), "freq",
GST_CONTROL_SOURCE (csource2)));
/* Set interpolation mode */