From a1775e75e56a3123715dd2d7e8f730f6d1d22ad0 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 3 Sep 2013 15:58:20 -0300 Subject: [PATCH] pad-monitor: removing bad check Elements are allowed to accumulate segments, they don't have to push 1:1 segments as they receive --- validate/gst/validate/gst-validate-pad-monitor.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c index 974bd72421..a9c931677f 100644 --- a/validate/gst/validate/gst-validate-pad-monitor.c +++ b/validate/gst/validate/gst-validate-pad-monitor.c @@ -1097,11 +1097,7 @@ gst_validate_pad_monitor_add_expected_newsegment (GstValidatePadMonitor * othermonitor = g_object_get_data ((GObject *) otherpad, "validate-monitor"); GST_VALIDATE_MONITOR_LOCK (othermonitor); - if (othermonitor->expected_segment) { - GST_VALIDATE_REPORT (othermonitor, EVENT_NEWSEGMENT_NOT_PUSHED, ""); - gst_event_unref (othermonitor->expected_segment); - } - othermonitor->expected_segment = gst_event_ref (event); + gst_event_replace (&othermonitor->expected_segment, event); GST_VALIDATE_MONITOR_UNLOCK (othermonitor); g_value_reset (&value); break;