[vlc-commits] Enabled HTTP seek support when Accept-Ranges is present and contains "bytes ".
Laurent Aimar
git at videolan.org
Thu Nov 3 20:40:17 CET 2011
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Nov 3 20:39:07 2011 +0100| [6385ae3c0692a9116c69c89ac426e7365d7a53e3] | committer: Laurent Aimar
Enabled HTTP seek support when Accept-Ranges is present and contains "bytes".
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6385ae3c0692a9116c69c89ac426e7365d7a53e3
---
modules/access/http.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index 58262eb..d32a0a9 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -1608,6 +1608,11 @@ static int Request( access_t *p_access, uint64_t i_tell )
if( AuthCheckReply( p_access, p, &p_sys->proxy, &p_sys->proxy_auth ) )
goto error;
}
+ else if( !strcasecmp( psz, "Accept-Ranges" ) )
+ {
+ if( !strcasecmp( p, "bytes" ) )
+ p_sys->b_seekable = true;
+ }
free( psz );
}
More information about the vlc-commits
mailing list