[0.11] gst-plugins-good: controller: adapt to control binding changes

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


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

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

controller: adapt to control binding changes

---

 tests/examples/shapewipe/shapewipe-example.c |    2 +-
 tests/examples/v4l2/camctrl.c                |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/examples/shapewipe/shapewipe-example.c b/tests/examples/shapewipe/shapewipe-example.c
index d8ad4bc..50985dc 100644
--- a/tests/examples/shapewipe/shapewipe-example.c
+++ b/tests/examples/shapewipe/shapewipe-example.c
@@ -98,7 +98,7 @@ main (gint argc, gchar ** argv)
 
   csource = gst_lfo_control_source_new ();
 
-  gst_object_set_control_binding (GST_OBJECT_CAST (shapewipe),
+  gst_object_add_control_binding (GST_OBJECT_CAST (shapewipe),
       gst_control_binding_new (GST_OBJECT_CAST (shapewipe), "position",
           GST_CONTROL_SOURCE (csource)));
 
diff --git a/tests/examples/v4l2/camctrl.c b/tests/examples/v4l2/camctrl.c
index 7c91eb8..ee3751c 100644
--- a/tests/examples/v4l2/camctrl.c
+++ b/tests/examples/v4l2/camctrl.c
@@ -96,7 +96,7 @@ set_program (GstObject * elem, GstStructure * prog)
       cs = g_hash_table_lookup (css, name);
       if (!cs) {
         cs = gst_interpolation_control_source_new ();
-        gst_object_set_control_binding (elem,
+        gst_object_add_control_binding (elem,
             gst_control_binding_new (elem, name, GST_CONTROL_SOURCE (cs)));
         g_object_set (cs, "mode", GST_INTERPOLATION_MODE_NONE, NULL);
         g_hash_table_insert (css, (gpointer) name, cs);



More information about the gstreamer-commits mailing list