From 24b6284d17547371a5c22c84f755357fa2c361b3 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 5 Sep 2013 16:15:40 -0300 Subject: [PATCH] pad-monitor: avoid false positives when a seek fails Remove the expected seqnums for events when a seek fails, preventing false positives at the final report --- validate/gst/validate/gst-validate-pad-monitor.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c index 57ae47baa8..0f9b6cc9ff 100644 --- a/validate/gst/validate/gst-validate-pad-monitor.c +++ b/validate/gst/validate/gst-validate-pad-monitor.c @@ -1387,6 +1387,16 @@ gst_validate_pad_monitor_src_event_check (GstValidatePadMonitor * pad_monitor, case GST_EVENT_FLUSH_STOP: case GST_EVENT_QOS: case GST_EVENT_SEEK: + { + if (ret == FALSE) { + /* do not expect any of these events anymore */ + pad_monitor->pending_flush_start_seqnum = 0; + pad_monitor->pending_flush_stop_seqnum = 0; + pad_monitor->pending_newsegment_seqnum = 0; + pad_monitor->pending_eos_seqnum = 0; + } + } + break; case GST_EVENT_NAVIGATION: case GST_EVENT_LATENCY: case GST_EVENT_STEP: