From efebda5a34de5c24c91fb77ca71903c24ee83c97 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 26 May 2017 17:48:01 +0200 Subject: dvdemux: Remove un-needed variable check if pad wasn't present by now everything would have broken before CID #1409854 --- ext/dv/gstdvdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/dv/gstdvdemux.c b/ext/dv/gstdvdemux.c index e6cbf7cd7..b76d7daa9 100644 --- a/ext/dv/gstdvdemux.c +++ b/ext/dv/gstdvdemux.c @@ -354,7 +354,7 @@ gst_dvdemux_add_pad (GstDVDemux * dvdemux, GstStaticPadTemplate * template, dvdemux->tag_event = gst_dvdemux_create_global_tag_event (dvdemux); } - if (pad && dvdemux->tag_event) { + if (dvdemux->tag_event) { gst_pad_push_event (pad, gst_event_ref (dvdemux->tag_event)); } -- cgit v1.2.3