inputselector: Don't dereference NULL pointer
authorSebastian Dröge <sebastian@centricular.com>
Mon, 12 Jan 2015 15:03:02 +0000 (16:03 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 12 Jan 2015 15:03:31 +0000 (16:03 +0100)
CID 1262286

plugins/elements/gstinputselector.c

index df2b50e..e79d501 100644 (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);
   }