From f7252cbd481649b046ddfa95264c0dad6072fb93 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 18 Jul 2017 10:47:00 -0400 Subject: [PATCH] validate: Remove some dead code CID 1415457 --- validate/gst/validate/gst-validate-pipeline-monitor.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/validate/gst/validate/gst-validate-pipeline-monitor.c b/validate/gst/validate/gst-validate-pipeline-monitor.c index ef686a1759..7bfffe857a 100644 --- a/validate/gst/validate/gst-validate-pipeline-monitor.c +++ b/validate/gst/validate/gst-validate-pipeline-monitor.c @@ -158,7 +158,6 @@ _check_pad_query_failures (GstPad * pad, GString * str, GstValidatePadMonitor ** last_refused_caps_monitor) { GstValidatePadMonitor *monitor; - GstPad *ghost_target = NULL; monitor = g_object_get_data (G_OBJECT (pad), "validate-monitor"); @@ -170,9 +169,6 @@ _check_pad_query_failures (GstPad * pad, GString * str, if (monitor->last_refused_caps) gst_object_replace ((GstObject **) last_refused_caps_monitor, (GstObject *) monitor); - - if (ghost_target) - gst_object_unref (ghost_target); } static GstPad *