mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
controller: port to new controller api
This commit is contained in:
parent
6f29ac8bb1
commit
b5d35e2acb
3 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <gst/controller/gstcontroller.h>
|
||||
|
||||
#include "tools.h"
|
||||
|
||||
#include <string.h>
|
||||
|
|
Loading…
Reference in a new issue