diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c index cdfe958476..e6dee8642f 100644 --- a/validate/gst/validate/gst-validate-pad-monitor.c +++ b/validate/gst/validate/gst-validate-pad-monitor.c @@ -150,8 +150,14 @@ _find_master_report_on_pad (GstPad * pad, GstValidateReport * report) GstValidatePadMonitor *pad_monitor; GstValidateReport *prev_report; gboolean result = FALSE; + GstPad *tmppad = pad; pad = _get_actual_pad (pad); + if (pad == NULL) { + GST_ERROR_OBJECT (tmppad, "Does not have a target yet"); + + return FALSE; + } pad_monitor = g_object_get_data ((GObject *) pad, "validate-monitor");