inputselector: Don't dereference NULL pointer

CID 1262286
This commit is contained in:
Sebastian Dröge 2015-01-12 16:03:02 +01:00
parent a31c538883
commit 29d8b9df8b

View file

@ -1386,7 +1386,7 @@ gst_input_selector_set_active_pad (GstInputSelector * self, GstPad * pad)
GST_DEBUG_OBJECT (self, "New active pad is %" GST_PTR_FORMAT,
self->active_sinkpad);
if (old != new && new->eos && !new->eos_sent) {
if (old != new && new && new->eos && !new->eos_sent) {
self->eos = TRUE;
GST_INPUT_SELECTOR_BROADCAST (self);
}