mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
tests: fix build of pitch-test
Does not sound like the same test in 0.10 though..
This commit is contained in:
parent
584485b9f4
commit
1754e12623
1 changed files with 5 additions and 2 deletions
|
@ -25,6 +25,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
#include <gst/controller/gsttimedvaluecontrolsource.h>
|
||||||
|
#include <gst/controller/gstinterpolationcontrolsource.h>
|
||||||
|
#include <gst/controller/gstdirectcontrolbinding.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
|
@ -71,8 +74,8 @@ main (int argc, char **argv)
|
||||||
cs = gst_interpolation_control_source_new ();
|
cs = gst_interpolation_control_source_new ();
|
||||||
g_object_set (cs, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL);
|
g_object_set (cs, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL);
|
||||||
|
|
||||||
gst_object_add_control_binding (pitch,
|
gst_object_add_control_binding (GST_OBJECT (pitch),
|
||||||
gst_direct_control_binding_new (pitch, "pitch", cs));
|
gst_direct_control_binding_new (GST_OBJECT (pitch), "pitch", cs));
|
||||||
tvcs = (GstTimedValueControlSource *) cs;
|
tvcs = (GstTimedValueControlSource *) cs;
|
||||||
|
|
||||||
for (i = 0; i < 100; ++i) {
|
for (i = 0; i < 100; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue