From 692df969ea5fbdf033f20d9ad8c763f7b666f3c2 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Sun, 10 May 2015 14:21:04 +0200 Subject: [PATCH] tests: wavpackparse: fix unit test See also https://bugzilla.gnome.org/show_bug.cgi?id=738237 --- tests/check/elements/wavpackparse.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/check/elements/wavpackparse.c b/tests/check/elements/wavpackparse.c index ec40909..f123afb 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 */ -- 2.7.4