From 057a8642230c6f6f2f09a5539f5b7d61411c8986 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 20 Nov 2014 11:53:34 +0100 Subject: [PATCH] validate: Don't fail getting master report from a ghostpad without target --- validate/gst/validate/gst-validate-pad-monitor.c | 6 ++++++ 1 file changed, 6 insertions(+) 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");