/* 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);
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);
/* 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);