diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2012-01-20 11:37:38 +0100 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2012-01-20 11:39:16 +0100 |
commit | 535d66102c2baa6996d47ad755cd39c6c41e752f (patch) | |
tree | 2d50fb69073d386332b18b662a4e210c39e7f824 | |
parent | b22c0dd3f6babc0e139c065840cb05279faff282 (diff) |
controller: adapt to controller api changes
Don't use the convenience api for control sources.
-rw-r--r-- | tests/examples/shapewipe/shapewipe-example.c | 5 | ||||
-rw-r--r-- | tests/examples/v4l2/camctrl.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/examples/shapewipe/shapewipe-example.c b/tests/examples/shapewipe/shapewipe-example.c index dfd4b6e4d..d8ad4bcec 100644 --- a/tests/examples/shapewipe/shapewipe-example.c +++ b/tests/examples/shapewipe/shapewipe-example.c @@ -98,8 +98,9 @@ main (gint argc, gchar ** argv) csource = gst_lfo_control_source_new (); - gst_object_set_control_source (GST_OBJECT (shapewipe), "position", - GST_CONTROL_SOURCE (csource)); + gst_object_set_control_binding (GST_OBJECT_CAST (shapewipe), + gst_control_binding_new (GST_OBJECT_CAST (shapewipe), "position", + GST_CONTROL_SOURCE (csource))); g_value_init (&val, G_TYPE_FLOAT); g_value_set_float (&val, 0.5); diff --git a/tests/examples/v4l2/camctrl.c b/tests/examples/v4l2/camctrl.c index 2593744f6..7c91eb8b5 100644 --- a/tests/examples/v4l2/camctrl.c +++ b/tests/examples/v4l2/camctrl.c @@ -96,7 +96,8 @@ 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_source (elem, name, GST_CONTROL_SOURCE (cs)); + gst_object_set_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); gst_object_unref (cs); |