validate: Remove some dead code

CID 1415457
This commit is contained in:
Thibault Saunier 2017-07-18 10:47:00 -04:00
parent e70557dc3e
commit f7252cbd48

View file

@ -158,7 +158,6 @@ _check_pad_query_failures (GstPad * pad, GString * str,
GstValidatePadMonitor ** last_refused_caps_monitor) GstValidatePadMonitor ** last_refused_caps_monitor)
{ {
GstValidatePadMonitor *monitor; GstValidatePadMonitor *monitor;
GstPad *ghost_target = NULL;
monitor = g_object_get_data (G_OBJECT (pad), "validate-monitor"); 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) if (monitor->last_refused_caps)
gst_object_replace ((GstObject **) last_refused_caps_monitor, gst_object_replace ((GstObject **) last_refused_caps_monitor,
(GstObject *) monitor); (GstObject *) monitor);
if (ghost_target)
gst_object_unref (ghost_target);
} }
static GstPad * static GstPad *