[vlc-commits] stream_filter/httplive.c: add usefull comment.
Jean-Paul Saman
git at videolan.org
Fri Mar 30 11:19:35 CEST 2012
vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Fri Mar 30 11:19:12 2012 +0200| [50a1fc8f0c4e4471f6d69c4cbea2d49dcd8278d7] | committer: Jean-Paul Saman
stream_filter/httplive.c: add usefull comment.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=50a1fc8f0c4e4471f6d69c4cbea2d49dcd8278d7
---
modules/stream_filter/httplive.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index a8dfc4b..26f6d74 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1717,6 +1717,10 @@ static int hls_Download(stream_t *s, segment_t *segment)
uint64_t size;
do
{
+ /* NOTE: Beware the size reported for a segment by the HLS server may not
+ * be correct, when downloading the segment data. Therefore check the size
+ * and enlarge the segment data block if necessary.
+ */
size = stream_Size(p_ts);
if (size > segment->size)
{
More information about the vlc-commits
mailing list