[vlc-commits] stream_filter/httplive.c: Fix bug that terminated reading an M3U8 prematurely.
Jean-Paul Saman
git at videolan.org
Tue Feb 22 14:41:24 CET 2011
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Tue Feb 22 12:30:32 2011 +0100| [2b2d6c22d87a706086c8fb854560031c05ed3883] | committer: Jean-Paul Saman
stream_filter/httplive.c: Fix bug that terminated reading an M3U8 prematurely.
Fix bug that terminated reading an M3U8 prematurely.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2b2d6c22d87a706086c8fb854560031c05ed3883
---
modules/stream_filter/httplive.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 4c2654e..7141055 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1,7 +1,7 @@
/*****************************************************************************
* httplive.c: HTTP Live Streaming stream filter
*****************************************************************************
- * Copyright (C) 2010 M2X BV
+ * Copyright (C) 2010-2011 M2X BV
* $Id$
*
* Author: Jean-Paul Saman <jpsaman _AT_ videolan _DOT_ org>
@@ -1400,7 +1400,7 @@ static ssize_t access_ReadM3U8(stream_t *s, vlc_url_t *url, uint8_t **buffer)
do
{
length = p_sys->p_access->pf_read(p_sys->p_access, *buffer + curlen, size - curlen);
- if ((length <= 0) || (length >= size))
+ if (length <= 0)
break;
curlen += length;
if (curlen >= size)
More information about the vlc-commits
mailing list