vlc | branch: master | Laurent Aimar <[email protected]> | 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 ); } _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
