]> git.sesse.net Git - vlc/commitdiff
http.c: if the webserver doesn't return 206 the stream is not seekable.
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Mon, 2 Jun 2003 16:01:21 +0000 (16:01 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Mon, 2 Jun 2003 16:01:21 +0000 (16:01 +0000)
modules/access/http.c

index 7f0f8b86bb94d7d5592468011002e9815523c983..5129660936851b9c8660936db48b839cd4881a5e 100644 (file)
@@ -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 <massiot@via.ecp.fr>
  *
@@ -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 );