hls: Fix vod
Don't stop when playing a vod file without bandwidth information
When a playlist doesn't contains any bandwidth stream or information,
initialize stream->bandwidth to 0 (it's a unsigned number). So test will
not
fail when calculating if we have the time to download it.
>> uint64_t size = (segment->duration * hls->bandwidth);
>> int estimated = (int)(size / s->p_sys->bandwidth);
>> if (estimated > segment->duration)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Showing
Please register or sign in to comment