validate: Do not segfault when receiving a segment on unlink pad

For some reason we did no discover that before.
This commit is contained in:
Thibault Saunier 2014-08-14 10:56:56 +02:00 committed by Thibault Saunier
parent 8eeaa1a95f
commit 0ad475063d

View file

@ -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);