Skip to content
Snippets Groups Projects
Commit 1247c42a authored by Edward Hervey's avatar Edward Hervey Committed by Tim-Philipp Müller
Browse files

check: Update uvch264demux for behaviour change

Since 006e7a34 we no longer error out on
incomplete aux segment.
parent e2022e98
No related branches found
No related tags found
No related merge requests found
......@@ -563,18 +563,13 @@ GST_START_TEST (test_not_enough_aux_data)
gst_buffer_fill (buffer, 0, data, sizeof (data));
gst_buffer_set_size (buffer, sizeof (data));
fail_unless (gst_pad_push (mjpg_pad, buffer) == GST_FLOW_ERROR);
/* It's actually silently ignored */
fail_unless (gst_pad_push (mjpg_pad, buffer) == GST_FLOW_OK);
fail_unless (gst_pad_push_event (mjpg_pad, gst_event_new_eos ()));
fail_unless (have_h264_eos && have_yuy2_eos && have_nv12_eos && have_jpg_eos);
fail_unless (buffer_h264 == NULL && buffer_jpg == NULL);
fail_unless (buffer_nv12 == NULL && buffer_yuy2 == NULL);
fail_unless (gerror != NULL);
fail_unless (gerror->domain == GST_STREAM_ERROR);
fail_unless (gerror->code == GST_STREAM_ERROR_DEMUX);
fail_unless (memcmp (gerror->message,
"Incomplete auxiliary stream. 16 bytes missing",
strlen (gerror->message)) == 0);
_teardown_test ();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment