check: Update uvch264demux for behaviour change

Since 006e7a3428 we no longer error out on
incomplete aux segment.
This commit is contained in:
Edward Hervey 2013-09-19 14:53:46 +02:00
parent 17ed696faa
commit e9373604d6

View file

@ -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 ();
}