mxfdemux: guard against NULL non source components
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 17 Apr 2014 08:35:37 +0000 (09:35 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 21 Apr 2014 08:24:00 +0000 (09:24 +0100)
commit52981d5a4a2a6dd0e666a00fcf873d70ccc4b319
tree0d90166afe2e936b5b63ea27429e94c242d2f902
parent9815faea9b8aaedc8b8d87383c2957064271e87a
mxfdemux: guard against NULL non source components

This component is dereferenced, and later code checking for
NULL in particular cases implies it can be NULL. This likely
does not fix the coverity warning as it was seeing another
path setting component to NULL explicitely, but this was
spotted by looking at:

Coverity 1139736

Which is actually OK from what I can see since the actual
dereference of the explicit NULL pointer will not happen
if the condition that led to the NULL pointer assignment
is met, since the assignment and defeference have mutually
exclusive tests.
gst/mxf/mxfdemux.c