Commit 0c9fa836 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

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.
parent b802dea8
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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment