dvdemux: Remove un-needed variable check

if pad wasn't present by now everything would have broken before

CID #1409854
This commit is contained in:
Edward Hervey 2017-05-26 17:48:01 +02:00 committed by Edward Hervey
parent c0cdfe1898
commit efebda5a34

View file

@ -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));
}