mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
tests/check/elements/playbin.c: Add small test for stream-info-value-array code paths.
Original commit message from CVS: * tests/check/elements/playbin.c: (test_sink_usage_video_only_stream), (playbin_suite): Add small test for stream-info-value-array code paths.
This commit is contained in:
parent
b802dea831
commit
0c9fa8366b
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-04-06 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* tests/check/elements/playbin.c:
|
||||
(test_sink_usage_video_only_stream), (playbin_suite):
|
||||
Add small test for stream-info-value-array code paths.
|
||||
|
||||
2007-04-05 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst-libs/gst/audio/gstbaseaudiosink.c:
|
||||
|
|
|
@ -76,6 +76,15 @@ DEFINE_TEST (test_sink_usage_video_only_stream)
|
|||
fail_unless_equals_int (cur_state, GST_STATE_NULL);
|
||||
fail_unless_equals_int (pending_state, GST_STATE_VOID_PENDING);
|
||||
|
||||
{
|
||||
GValueArray *stream_info = NULL;
|
||||
|
||||
g_object_get (playbin, "stream-info-value-array", &stream_info, NULL);
|
||||
fail_unless (stream_info != NULL);
|
||||
fail_unless_equals_int (stream_info->n_values, 1);
|
||||
g_value_array_free (stream_info);
|
||||
}
|
||||
|
||||
gst_element_set_state (playbin, GST_STATE_NULL);
|
||||
gst_object_unref (playbin);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue