From: Sigmund Augdal Helberg Date: Mon, 2 Jun 2003 16:01:21 +0000 (+0000) Subject: http.c: if the webserver doesn't return 206 the stream is not seekable. X-Git-Tag: 0.6.0~152 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=fd8929f6cb688dac57858e58bd439c1737a3bdf7;p=vlc http.c: if the webserver doesn't return 206 the stream is not seekable. --- diff --git a/modules/access/http.c b/modules/access/http.c index 7f0f8b86bb..5129660936 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -2,7 +2,7 @@ * http.c: HTTP access plug-in ***************************************************************************** * Copyright (C) 2001, 2002 VideoLAN - * $Id: http.c,v 1.35 2003/05/15 22:27:36 massiot Exp $ + * $Id: http.c,v 1.36 2003/06/02 16:01:21 sigmunau Exp $ * * Authors: Christophe Massiot * @@ -377,6 +377,10 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell ) { p_input->stream.b_seekable = VLC_FALSE; } + if( i_code != 206 ) + { + p_input->stream.b_seekable = VLC_FALSE; + } p_input->stream.b_changed = VLC_TRUE; vlc_mutex_unlock( &p_input->stream.stream_lock );