consistencychecker: also check for duplicated flush_starts
authorStefan Sauer <ensonic@users.sf.net>
Wed, 29 Feb 2012 07:44:04 +0000 (08:44 +0100)
committerStefan Sauer <ensonic@users.sf.net>
Wed, 29 Feb 2012 07:44:04 +0000 (08:44 +0100)
libs/gst/check/gstconsistencychecker.c

index ded047e..94e665e 100644 (file)
@@ -58,6 +58,9 @@ source_pad_data_cb (GstPad * pad, GstMiniObject * data,
     GST_DEBUG_OBJECT (pad, "%s", GST_EVENT_TYPE_NAME (event));
     switch (GST_EVENT_TYPE (event)) {
       case GST_EVENT_FLUSH_START:
+        /* FIXME : not 100% sure about whether getting two flush_start in a row
+         * is valid */
+        fail_if (consist->flushing, "Received another FLUSH_START");
         consist->flushing = TRUE;
         break;
       case GST_EVENT_FLUSH_STOP: