[vlc-commits] Execute EOF when an error occurs while reading the chunk header (HTTP).
Laurent Aimar
git at videolan.org
Sat Jan 7 01:29:55 CET 2012
vlc/vlc-1.2 | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Jan 6 22:20:56 2012 +0100| [e271860328d0c27f566fdf9d3b81acc02a5b6957] | committer: Jean-Baptiste Kempf
Execute EOF when an error occurs while reading the chunk header (HTTP).
(cherry picked from commit c16b17c630c48c28a2f31629ff736e41cc789d73)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=e271860328d0c27f566fdf9d3b81acc02a5b6957
---
modules/access/http.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index d32a0a9..d8e56a4 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -783,7 +783,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
{
/* fatal error - end of file */
msg_Dbg( p_access, "failed reading chunk-header line" );
- return 0;
+ goto fatal;
}
p_sys->i_chunk = strtoll( psz, NULL, 16 );
free( psz );
More information about the vlc-commits
mailing list