check: Update uvch264demux for behaviour change
authorEdward Hervey <edward@collabora.com>
Thu, 19 Sep 2013 12:53:46 +0000 (14:53 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 12 Apr 2014 12:26:50 +0000 (13:26 +0100)
Since 006e7a3428bd097fc6e6c648332bff583dd434f9 we no longer error out on
incomplete aux segment.

tests/check/elements/uvch264demux.c

index 51b9cfbc476e3fb42f583070db697aabd459b246..fb8b17f83781eb53e94281f6ad701fec124f453c 100644 (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 ();
 }