summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2012-02-29 08:44:04 +0100
committerStefan Sauer <ensonic@users.sf.net>2012-02-29 08:44:04 +0100
commitac03c328d51e6d1a80da098fa8a2a1938536ea27 (patch)
tree22c32f07900ce98c3f5463cd06577633ceeec9d7 /libs
parent9fd063e4048f90ffce5f97ee5d11006e0426988a (diff)
consistencychecker: also check for duplicated flush_starts
Diffstat (limited to 'libs')
-rw-r--r--libs/gst/check/gstconsistencychecker.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/gst/check/gstconsistencychecker.c b/libs/gst/check/gstconsistencychecker.c
index ded047e1d..94e665eca 100644
--- a/libs/gst/check/gstconsistencychecker.c
+++ b/libs/gst/check/gstconsistencychecker.c
@@ -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: