validate-pad-monitor: Fix previous commit

Post-send handling was only meant for seek events
This commit is contained in:
Edward Hervey 2017-04-10 11:43:28 +02:00 committed by Edward Hervey
parent b156616b5c
commit 1f5a900bce

View file

@ -1964,6 +1964,7 @@ gst_validate_pad_monitor_src_event_check (GstValidatePadMonitor * pad_monitor,
gst_event_ref (event);
ret = pad_monitor->event_func (pad, parent, event);
if (GST_EVENT_TYPE (event) == GST_EVENT_SEEK) {
/* If the seek was already handled (same current seqnum), reset the
* expected accurate seek value */
if (ret && pad_monitor->has_segment
@ -1979,6 +1980,7 @@ gst_validate_pad_monitor_src_event_check (GstValidatePadMonitor * pad_monitor,
pad_monitor->pending_eos_seqnum = 0;
pad_monitor->pending_seek_accurate_time = GST_CLOCK_TIME_NONE;
}
}
GST_VALIDATE_MONITOR_LOCK (pad_monitor);
}