mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
volume: add a control point for the test
This commit is contained in:
parent
bcbb58ccbd
commit
ad090a612d
1 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue