volume: add a control point for the test
This commit is contained in:
parent
bcbb58ccbd
commit
ad090a612d
@ -1760,6 +1760,7 @@ GST_END_TEST;
|
|||||||
GST_START_TEST (test_controller_processing)
|
GST_START_TEST (test_controller_processing)
|
||||||
{
|
{
|
||||||
GstControlSource *cs;
|
GstControlSource *cs;
|
||||||
|
GstTimedValueControlSource *tvcs;
|
||||||
GstElement *volume;
|
GstElement *volume;
|
||||||
GstBuffer *inbuffer, *outbuffer;
|
GstBuffer *inbuffer, *outbuffer;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
@ -1774,6 +1775,10 @@ GST_START_TEST (test_controller_processing)
|
|||||||
gst_object_add_control_binding (GST_OBJECT_CAST (volume),
|
gst_object_add_control_binding (GST_OBJECT_CAST (volume),
|
||||||
gst_direct_control_binding_new (GST_OBJECT_CAST (volume), "volume", cs));
|
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,
|
fail_unless (gst_element_set_state (volume,
|
||||||
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
|
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
|
||||||
"could not set to playing");
|
"could not set to playing");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user