From 0ad475063db4f89a5331a98a9095c7ee3d7130e6 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 14 Aug 2014 10:56:56 +0200 Subject: [PATCH] validate: Do not segfault when receiving a segment on unlink pad For some reason we did no discover that before. --- validate/gst/validate/gst-validate-pad-monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c index 0dc5a4b..7cad96a 100644 --- a/validate/gst/validate/gst-validate-pad-monitor.c +++ b/validate/gst/validate/gst-validate-pad-monitor.c @@ -1166,6 +1166,8 @@ gst_validate_pad_monitor_add_expected_newsegment (GstValidatePadMonitor * switch (gst_iterator_next (iter, &value)) { case GST_ITERATOR_OK: otherpad = g_value_get_object (&value); + if (!otherpad) + continue; othermonitor = g_object_get_data ((GObject *) otherpad, "validate-monitor"); GST_VALIDATE_MONITOR_LOCK (othermonitor); -- 2.7.4