From: Stefan Sauer Date: Mon, 19 Dec 2011 21:51:47 +0000 (+0100) Subject: controller: port to new controller api X-Git-Tag: 1.19.3~511^2~7047 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e14fb131e88e167c16fb223e82f620552f6fa4f;p=platform%2Fupstream%2Fgstreamer.git controller: port to new controller api --- diff --git a/tests/check/elements/volume.c b/tests/check/elements/volume.c index ca1a3da..77996d6 100644 --- a/tests/check/elements/volume.c +++ b/tests/check/elements/volume.c @@ -1726,18 +1726,21 @@ GST_START_TEST (test_controller_usability) 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); + gst_timed_value_control_source_set ((GstTimedValueControlSource *) csource, + 0 * GST_SECOND, &value); g_value_set_double (&value, 1.0); - gst_interpolation_control_source_set (csource, 5 * GST_SECOND, &value); + gst_timed_value_control_source_set ((GstTimedValueControlSource *) csource, + 5 * GST_SECOND, &value); g_value_set_double (&value, 0.0); - gst_interpolation_control_source_set (csource, 10 * GST_SECOND, &value); + gst_timed_value_control_source_set ((GstTimedValueControlSource *) csource, + 10 * GST_SECOND, &value); g_value_unset (&value); g_object_unref (c); + g_object_unref (csource); cleanup_volume (volume); } diff --git a/tests/icles/audio-trickplay.c b/tests/icles/audio-trickplay.c index bb52d00..133fe3d 100644 --- a/tests/icles/audio-trickplay.c +++ b/tests/icles/audio-trickplay.c @@ -142,18 +142,23 @@ main (gint argc, gchar ** argv) /* set control values */ g_value_init (&vol, G_TYPE_DOUBLE); g_value_set_double (&vol, 0.0); - gst_interpolation_control_source_set (csource1, 0 * GST_SECOND, &vol); + gst_timed_value_control_source_set ((GstTimedValueControlSource *) csource1, + 0 * GST_SECOND, &vol); g_value_set_double (&vol, 1.0); - gst_interpolation_control_source_set (csource1, 5 * GST_SECOND, &vol); + gst_timed_value_control_source_set ((GstTimedValueControlSource *) csource1, + 5 * GST_SECOND, &vol); g_object_unref (csource1); g_value_set_double (&vol, 220.0); - gst_interpolation_control_source_set (csource2, 0 * GST_SECOND, &vol); + gst_timed_value_control_source_set ((GstTimedValueControlSource *) csource2, + 0 * GST_SECOND, &vol); g_value_set_double (&vol, 3520.0); - gst_interpolation_control_source_set (csource2, 2 * GST_SECOND, &vol); + gst_timed_value_control_source_set ((GstTimedValueControlSource *) csource2, + 2 * GST_SECOND, &vol); g_value_set_double (&vol, 440.0); - gst_interpolation_control_source_set (csource2, 6 * GST_SECOND, &vol); + gst_timed_value_control_source_set ((GstTimedValueControlSource *) csource2, + 6 * GST_SECOND, &vol); g_object_unref (csource2);