From: Stefan Sauer Date: Wed, 25 Apr 2012 16:43:59 +0000 (+0200) Subject: volume: add a control point for the test X-Git-Tag: 1.19.3~511^2~6529 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad090a612d53cba07aa5db543191d360183c8f4e;p=platform%2Fupstream%2Fgstreamer.git volume: add a control point for the test --- diff --git a/tests/check/elements/volume.c b/tests/check/elements/volume.c index 340d56d..ff9184c 100644 --- a/tests/check/elements/volume.c +++ b/tests/check/elements/volume.c @@ -1760,6 +1760,7 @@ GST_END_TEST; GST_START_TEST (test_controller_processing) { GstControlSource *cs; + GstTimedValueControlSource *tvcs; GstElement *volume; GstBuffer *inbuffer, *outbuffer; GstCaps *caps; @@ -1774,6 +1775,10 @@ GST_START_TEST (test_controller_processing) gst_object_add_control_binding (GST_OBJECT_CAST (volume), gst_direct_control_binding_new (GST_OBJECT_CAST (volume), "volume", cs)); + /* the value range for volume is 0.0 ... 10.0 */ + tvcs = (GstTimedValueControlSource *) cs; + gst_timed_value_control_source_set (tvcs, 0 * GST_SECOND, 0.1); + fail_unless (gst_element_set_state (volume, GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS, "could not set to playing");