]> git.sesse.net Git - vlc/commitdiff
Do not bother with the byte range when we are at offset zero
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 7 Aug 2007 17:03:52 +0000 (17:03 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 7 Aug 2007 17:03:52 +0000 (17:03 +0000)
modules/access/http.c

index 83ed05b0193ba4bd5dc45d04f3572ec632ee31c5..bff397480585976db6925ba9baf82c7c9854f3e5 100644 (file)
@@ -925,7 +925,7 @@ static int Request( access_t *p_access, int64_t i_tell )
     net_Printf( VLC_OBJECT(p_access), p_sys->fd, pvs, "User-Agent: %s\r\n",
                 p_sys->psz_user_agent );
     /* Offset */
-    if( p_sys->i_version == 1 )
+    if( ( p_sys->i_version == 1 ) && ( i_tell > 0 ) )
     {
         net_Printf( VLC_OBJECT(p_access), p_sys->fd, pvs,
                     "Range: bytes="I64Fd"-\r\n", i_tell );