From 6e1b51d02c3beae5b136e08b7a89eede8bf2000c Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Mon, 19 Dec 2011 23:41:25 +0100 Subject: [PATCH] controller: port to new interpolation-mode api --- tests/check/elements/volume.c | 6 ++---- tests/icles/audio-trickplay.c | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/check/elements/volume.c b/tests/check/elements/volume.c index 77996d6..aac28ab 100644 --- a/tests/check/elements/volume.c +++ b/tests/check/elements/volume.c @@ -1723,8 +1723,7 @@ GST_START_TEST (test_controller_usability) /* this shouldn't crash, whether this mode is implemented or not */ csource = gst_interpolation_control_source_new (); - gst_interpolation_control_source_set_interpolation_mode (csource, - GST_INTERPOLATE_CUBIC); + g_object_set (csource, "mode", GST_INTERPOLATION_MODE_CUBIC, NULL); gst_controller_set_control_source (c, "volume", GST_CONTROL_SOURCE (csource)); g_value_init (&value, G_TYPE_DOUBLE); @@ -1765,8 +1764,7 @@ GST_START_TEST (test_controller_processing) fail_unless (GST_IS_CONTROLLER (c)); csource = gst_interpolation_control_source_new (); - gst_interpolation_control_source_set_interpolation_mode (csource, - GST_INTERPOLATE_CUBIC); + g_object_set (csource, "mode", GST_INTERPOLATION_MODE_CUBIC, NULL); gst_controller_set_control_source (c, "volume", GST_CONTROL_SOURCE (csource)); g_object_unref (csource); diff --git a/tests/icles/audio-trickplay.c b/tests/icles/audio-trickplay.c index 133fe3d..9626cf2 100644 --- a/tests/icles/audio-trickplay.c +++ b/tests/icles/audio-trickplay.c @@ -134,10 +134,8 @@ main (gint argc, gchar ** argv) /* Set interpolation mode */ - gst_interpolation_control_source_set_interpolation_mode (csource1, - GST_INTERPOLATE_LINEAR); - gst_interpolation_control_source_set_interpolation_mode (csource2, - GST_INTERPOLATE_LINEAR); + g_object_set (csource1, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL); + g_object_set (csource2, "mode", GST_INTERPOLATION_MODE_LINEAR, NULL); /* set control values */ g_value_init (&vol, G_TYPE_DOUBLE); -- 2.7.4