[vlc-devel] WG: [PATCH 06/13] dash: added downloader and bitrate to chunk

Frederic YHUEL fyhuel at viotech.net
Thu Feb 16 18:09:04 CET 2012


On Thu, Feb 16, 2012 at 5:48 PM, Frederic YHUEL <fyhuel at viotech.net> wrote:
>>>>
>>>> I don't understand why you are creating a first block, use it to
>>>> read,
>>>> and then copy its content to another block?!
>>>> Why don't you just create a block, use it to read, and append it to
>>>> the block chain ?
>>>>
>>>
>>> When we allocate the block before the read call we would have to resize
>>> the block if the return of read is less than our blocksize.
>>>
>
> But this is a rare case, right? A block resizing from time to time
> should cost less than a memcpy every time, I guess.
>
> Or maybe you should put the read in a loop, like in HLS?
>

Ok I _really_ should think more before sending a mail... Sorry!


-- 
Frédéric



More information about the vlc-devel mailing list