mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
tests: wavpackparse: fix unit test
See also https://bugzilla.gnome.org/show_bug.cgi?id=738237
This commit is contained in:
parent
2e412a447a
commit
692df969ea
1 changed files with 6 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue