hls: only set DISCONT flag on a valid buffer
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 8 Apr 2014 15:53:54 +0000 (16:53 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 8 Apr 2014 15:56:04 +0000 (16:56 +0100)
commitc319b1cc8f4e82e2d90ae0e8e4d1f0b20b631fc2
tree1919238a09eb66562cfa9d4537b9e36eb621b482
parent39dc1f0ebb95a027a297a5fdf5e58c04e79a592c
hls: only set DISCONT flag on a valid buffer

Recent refactoring causes this code to be called with either a NULL
fragment, or a non NULL fragment. In the former case, we don't have
a buffer. In the latter case, the original code dealing with DISCONT
assumed the buffer was valid. Testing for a NULL buffer here thus
does not seem to change the intent, and fixes:

Coverity 1195147
ext/hls/gsthlsdemux.c