From 79b4be47a8e1d4121979f4185dd1b261b1496519 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 11 Jul 2007 23:12:12 +0000 Subject: [PATCH] Fix 'make check' build against core CVS. Original commit message from CVS: * configure.ac: * tests/check/elements/volume.c: (GST_START_TEST): Fix 'make check' build against core CVS. --- ChangeLog | 6 ++++++ configure.ac | 2 +- tests/check/elements/volume.c | 19 ++++++++++++------- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index d7bf770f28..4c1881d0a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-07-12 Tim-Philipp Müller + + * configure.ac: + * tests/check/elements/volume.c: (GST_START_TEST): + Fix 'make check' build against core CVS. + 2007-07-10 Stefan Kost * gst-libs/gst/interfaces/propertyprobe.c: diff --git a/configure.ac b/configure.ac index 3b45c7de54..338e2b3242 100644 --- a/configure.ac +++ b/configure.ac @@ -54,7 +54,7 @@ dnl AS_LIBTOOL_TAGS AM_PROG_LIBTOOL dnl *** required versions of GStreamer stuff *** -GST_REQ=0.10.12.1 +GST_REQ=0.10.13.1 dnl *** autotools stuff **** diff --git a/tests/check/elements/volume.c b/tests/check/elements/volume.c index d92b35da3e..3cc14cdc76 100644 --- a/tests/check/elements/volume.c +++ b/tests/check/elements/volume.c @@ -372,6 +372,7 @@ GST_END_TEST; GST_START_TEST (test_controller_usability) { + GstInterpolationControlSource *csource; GstController *c; GstElement *volume; GValue value = { 0, }; @@ -379,21 +380,25 @@ GST_START_TEST (test_controller_usability) /* note: the volume element should init the controller library for us */ volume = setup_volume (); - g_value_init (&value, G_TYPE_DOUBLE); - c = gst_controller_new (G_OBJECT (volume), "volume", NULL); fail_unless (GST_IS_CONTROLLER (c)); /* this shouldn't crash, whether this mode is implemented or not */ - gst_controller_set_interpolation_mode (c, "volume", GST_INTERPOLATE_CUBIC); + csource = gst_interpolation_control_source_new (); + gst_interpolation_control_source_set_interpolation_mode (csource, + GST_INTERPOLATE_CUBIC); + gst_controller_set_control_source (c, "volume", GST_CONTROL_SOURCE (csource)); + g_object_unref (csource); + g_value_init (&value, G_TYPE_DOUBLE); + g_value_set_double (&value, 0.0); + gst_interpolation_control_source_set (csource, 0 * GST_SECOND, &value); g_value_set_double (&value, 1.0); - gst_controller_set (c, "volume", 0 * GST_SECOND, &value); - g_value_set_double (&value, 1.0); - gst_controller_set (c, "volume", 5 * GST_SECOND, &value); + gst_interpolation_control_source_set (csource, 5 * GST_SECOND, &value); g_value_set_double (&value, 0.0); - gst_controller_set (c, "volume", 10 * GST_SECOND, &value); + gst_interpolation_control_source_set (csource, 10 * GST_SECOND, &value); + g_value_unset (&value); g_object_unref (c); -- 2.34.1