controller: port to new controller api

This commit is contained in:
Stefan Sauer 2011-11-04 11:42:34 +01:00
parent 6f29ac8bb1
commit b5d35e2acb
3 changed files with 2 additions and 8 deletions

View file

@ -20,7 +20,6 @@
*/
#include <gst/gst.h>
#include <gst/controller/gstcontroller.h>
#include <gst/controller/gstinterpolationcontrolsource.h>
/* a song in buzztard can easily reach 30000 here */
@ -89,7 +88,6 @@ main (gint argc, gchar * argv[])
GstClockTime tick;
gst_init (&argc, &argv);
gst_controller_init (&argc, &argv);
/* build pipeline */
bin = gst_pipeline_new ("pipeline");
@ -112,7 +110,7 @@ main (gint argc, gchar * argv[])
tick = BLOCK_SIZE * GST_SECOND / 44100;
/* add a controller to the source */
if (!(ctrl = gst_controller_new (G_OBJECT (src), "freq", NULL))) {
if (!(ctrl = gst_controller_new (GST_OBJECT (src), "freq", NULL))) {
GST_WARNING ("can't control source element");
goto Error;
}

View file

@ -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;
}

View file

@ -25,8 +25,6 @@
# include "config.h"
#endif
#include <gst/controller/gstcontroller.h>
#include "tools.h"
#include <string.h>