Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mnauw@users.sourceforge.net>2015-05-10 15:21:04 +0300
committerMark Nauwelaerts <mnauw@users.sourceforge.net>2015-05-10 15:22:43 +0300
commit692df969ea5fbdf033f20d9ad8c763f7b666f3c2 (patch)
tree1bbdf93594acafcc41eca63639b8072804cd58dc /tests/check/elements
parent2e412a447a66c3a44aa660c122657db5056c623c (diff)
tests: wavpackparse: fix unit test
See also https://bugzilla.gnome.org/show_bug.cgi?id=738237
Diffstat (limited to 'tests/check/elements')
-rw-r--r--tests/check/elements/wavpackparse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/check/elements/wavpackparse.c b/tests/check/elements/wavpackparse.c
index ec409097f..f123afb30 100644
--- a/tests/check/elements/wavpackparse.c
+++ b/tests/check/elements/wavpackparse.c
@@ -116,6 +116,9 @@ GST_START_TEST (test_parsing_valid_frames)
/* should decode the buffer without problems */
fail_unless_equals_int (gst_pad_push (mysrcpad, inbuffer), GST_FLOW_OK);
+ /* inform of no further data */
+ fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
+
num_buffers = g_list_length (buffers);
/* should get 2 buffers, each one complete wavpack frame */
fail_unless_equals_int (num_buffers, 2);
@@ -177,6 +180,9 @@ GST_START_TEST (test_parsing_invalid_first_header)
/* should decode the buffer without problems */
fail_unless_equals_int (gst_pad_push (mysrcpad, inbuffer), GST_FLOW_OK);
+ /* inform of no further data */
+ fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
+
num_buffers = g_list_length (buffers);
/* should get 1 buffers, the second non-broken one */