[0.11] gst-plugins-base: controller: adapt to control_binding changes

Stefan Kost ensonic at kemper.freedesktop.org
Fri Jan 20 05:46:43 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: ee434b84719522573f02fc370682e152cec9b3cb
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=ee434b84719522573f02fc370682e152cec9b3cb

Author: Stefan Sauer <ensonic at users.sf.net>
Date:   Fri Jan 20 14:44:19 2012 +0100

controller: adapt to control_binding changes

---

 tests/check/elements/volume.c |    4 ++--
 tests/icles/audio-trickplay.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/check/elements/volume.c b/tests/check/elements/volume.c
index 00da31e..c841d21 100644
--- a/tests/check/elements/volume.c
+++ b/tests/check/elements/volume.c
@@ -1730,7 +1730,7 @@ GST_START_TEST (test_controller_usability)
   /* this shouldn't crash, whether this mode is implemented or not */
   csource = gst_interpolation_control_source_new ();
   g_object_set (csource, "mode", GST_INTERPOLATION_MODE_CUBIC, NULL);
-  gst_object_set_control_binding (GST_OBJECT_CAST (volume),
+  gst_object_add_control_binding (GST_OBJECT_CAST (volume),
       gst_control_binding_new (GST_OBJECT_CAST (volume), "volume",
           GST_CONTROL_SOURCE (csource)));
 
@@ -1760,7 +1760,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_set_control_binding (GST_OBJECT_CAST (volume),
+  gst_object_add_control_binding (GST_OBJECT_CAST (volume),
       gst_control_binding_new (GST_OBJECT_CAST (volume), "volume",
           GST_CONTROL_SOURCE (csource)));
 
diff --git a/tests/icles/audio-trickplay.c b/tests/icles/audio-trickplay.c
index 937928a..a9ad296 100644
--- a/tests/icles/audio-trickplay.c
+++ b/tests/icles/audio-trickplay.c
@@ -127,10 +127,10 @@ main (gint argc, gchar ** argv)
   csource1 = gst_interpolation_control_source_new ();
   csource2 = gst_interpolation_control_source_new ();
 
-  gst_object_set_control_binding (GST_OBJECT_CAST (src),
+  gst_object_add_control_binding (GST_OBJECT_CAST (src),
       gst_control_binding_new (GST_OBJECT_CAST (src), "volume",
           GST_CONTROL_SOURCE (csource1)));
-  gst_object_set_control_binding (GST_OBJECT_CAST (src),
+  gst_object_add_control_binding (GST_OBJECT_CAST (src),
       gst_control_binding_new (GST_OBJECT_CAST (src), "freq",
           GST_CONTROL_SOURCE (csource2)));
 



More information about the gstreamer-commits mailing list