summaryrefslogtreecommitdiff
path: root/tests/examples
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2011-11-04 11:42:34 +0100
committerStefan Sauer <ensonic@users.sf.net>2011-11-04 20:11:51 +0100
commitb5d35e2acbb495f66acac04441009c18e488cb44 (patch)
tree718f1bf1141e251b81c457825d42e7ce2db709a2 /tests/examples
parent6f29ac8bb1b2981f3bb25e8c6b7713e750966fb9 (diff)
controller: port to new controller api
Diffstat (limited to 'tests/examples')
-rw-r--r--tests/examples/controller/audio-example.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/examples/controller/audio-example.c b/tests/examples/controller/audio-example.c
index f5b2774fa..22d54b219 100644
--- a/tests/examples/controller/audio-example.c
+++ b/tests/examples/controller/audio-example.c
@@ -8,7 +8,6 @@
*/
#include <gst/gst.h>
-#include <gst/controller/gstcontroller.h>
#include <gst/controller/gstinterpolationcontrolsource.h>
gint
@@ -25,7 +24,6 @@ main (gint argc, gchar ** argv)
GValue vol = { 0, };
gst_init (&argc, &argv);
- gst_controller_init (&argc, &argv);
/* build pipeline */
bin = gst_pipeline_new ("pipeline");
@@ -52,7 +50,7 @@ main (gint argc, gchar ** argv)
*/
/* add a controller to the source */
- if (!(ctrl = gst_controller_new (G_OBJECT (src), "freq", "volume", NULL))) {
+ if (!(ctrl = gst_controller_new (GST_OBJECT (src), "freq", "volume", NULL))) {
GST_WARNING ("can't control source element");
goto Error;
}