summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-01-12 16:03:02 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-01-12 16:03:31 +0100
commit29d8b9df8b87fc2e6278abc6a902a9c2dd1378d7 (patch)
treebd936f5bfba869dee0c1bfd51fe69c60fc3c48ce /plugins
parenta31c538883a9b310ec9e4499f38aedf4833db296 (diff)
inputselector: Don't dereference NULL pointer
CID 1262286
Diffstat (limited to 'plugins')
-rw-r--r--plugins/elements/gstinputselector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c
index df2b50e2e..e79d5010d 100644
--- a/plugins/elements/gstinputselector.c
+++ b/plugins/elements/gstinputselector.c
@@ -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);
}