[0.11] gst-plugins-good: controller: move from control-binding to control-binding-direct

Stefan Kost ensonic at kemper.freedesktop.org
Mon Jan 23 02:05:36 PST 2012


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

Author: Stefan Sauer <ensonic at users.sf.net>
Date:   Sat Jan 21 20:07:56 2012 +0100

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

---

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

diff --git a/tests/examples/shapewipe/shapewipe-example.c b/tests/examples/shapewipe/shapewipe-example.c
index 50985dc..43b616b 100644
--- a/tests/examples/shapewipe/shapewipe-example.c
+++ b/tests/examples/shapewipe/shapewipe-example.c
@@ -19,6 +19,7 @@
 
 #include <gst/gst.h>
 #include <gst/controller/gstlfocontrolsource.h>
+#include <gst/controller/gstcontrolbindingdirect.h>
 
 #include <stdlib.h>
 
@@ -99,7 +100,7 @@ main (gint argc, gchar ** argv)
   csource = gst_lfo_control_source_new ();
 
   gst_object_add_control_binding (GST_OBJECT_CAST (shapewipe),
-      gst_control_binding_new (GST_OBJECT_CAST (shapewipe), "position",
+      gst_control_binding_direct_new (GST_OBJECT_CAST (shapewipe), "position",
           GST_CONTROL_SOURCE (csource)));
 
   g_value_init (&val, G_TYPE_FLOAT);
diff --git a/tests/examples/v4l2/camctrl.c b/tests/examples/v4l2/camctrl.c
index ee3751c..d44c6a9 100644
--- a/tests/examples/v4l2/camctrl.c
+++ b/tests/examples/v4l2/camctrl.c
@@ -32,6 +32,7 @@
 
 #include <gst/gst.h>
 #include <gst/controller/gstinterpolationcontrolsource.h>
+#include <gst/controller/gstcontrolbindingdirect.h>
 
 static void
 event_loop (GstElement * bin)
@@ -97,7 +98,8 @@ set_program (GstObject * elem, GstStructure * prog)
       if (!cs) {
         cs = gst_interpolation_control_source_new ();
         gst_object_add_control_binding (elem,
-            gst_control_binding_new (elem, name, GST_CONTROL_SOURCE (cs)));
+            gst_control_binding_direct_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);
         gst_object_unref (cs);



More information about the gstreamer-commits mailing list