mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
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
This commit is contained in:
parent
fefc5ffb41
commit
24b6284d17
1 changed files with 10 additions and 0 deletions
|
@ -1387,6 +1387,16 @@ gst_validate_pad_monitor_src_event_check (GstValidatePadMonitor * pad_monitor,
|
||||||
case GST_EVENT_FLUSH_STOP:
|
case GST_EVENT_FLUSH_STOP:
|
||||||
case GST_EVENT_QOS:
|
case GST_EVENT_QOS:
|
||||||
case GST_EVENT_SEEK:
|
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_NAVIGATION:
|
||||||
case GST_EVENT_LATENCY:
|
case GST_EVENT_LATENCY:
|
||||||
case GST_EVENT_STEP:
|
case GST_EVENT_STEP:
|
||||||
|
|
Loading…
Reference in a new issue