]> git.sesse.net Git - vlc/commit
HLS (httplive.c): fix Peek() function
authorF. Yhuel <fyhuel@viotech.net>
Thu, 4 Aug 2011 14:33:43 +0000 (16:33 +0200)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Mon, 8 Aug 2011 09:25:49 +0000 (11:25 +0200)
commitcade3d997969c75466336c74f1a29eb4987c46d7
tree1aac42b46faf3d8abd9f4dd1ee286d4fc8cf682e
parent8a3bcbae2d407bf6e50ce95e71e0fe36ddea14fc
HLS (httplive.c): fix Peek() function

The new Peek() function now allocates a block (p_sys->peeked) if the
required size (i_peek) is greater than the size of the playback
segment, and then do a copy of one (or several) segment's data block(s) in it.
In the end, p_sys->peeked might be the concatenation of several segment's data
blocks, but usually it will be NULL.

Signed-off-by: Jean-Paul Saman <jean-paul.saman@m2x.nl>
modules/stream_filter/httplive.c