consistencychecker: allow some more events before a segment event
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 3 Apr 2012 16:25:40 +0000 (18:25 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Tue, 3 Apr 2012 16:26:12 +0000 (18:26 +0200)
libs/gst/check/gstconsistencychecker.c

index a44e3b0..35f325f 100644 (file)
@@ -86,6 +86,12 @@ source_pad_data_cb (GstPad * pad, GstPadProbeInfo * info,
         fail_if (consist->eos, "Received a FLUSH_STOP after an EOS");
         consist->flushing = consist->expect_flush = FALSE;
         break;
+      case GST_EVENT_STREAM_START:
+      case GST_EVENT_STREAM_CONFIG:
+      case GST_EVENT_CAPS:
+        /* ok to have these before segment event */
+        /* FIXME check order more precisely, if so spec'ed somehow ? */
+        break;
       case GST_EVENT_SEGMENT:
         fail_if ((consist->expect_flush && consist->flushing),
             "Received SEGMENT while in a flushing seek");