]> git.sesse.net Git - vlc/commitdiff
fixed up http redirects when there are other items in the playlist.
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Mon, 17 Mar 2003 15:05:55 +0000 (15:05 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Mon, 17 Mar 2003 15:05:55 +0000 (15:05 +0000)
modules/access/http.c

index d26bd3e00f302500d5e4da85b9857551e0f2288c..9930f9aab8db333607ee2880b1415bd540517572 100644 (file)
@@ -2,7 +2,7 @@
  * http.c: HTTP access plug-in
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: http.c,v 1.25 2003/03/03 14:21:08 gbazin Exp $
+ * $Id: http.c,v 1.26 2003/03/17 15:05:55 sigmunau Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -339,7 +339,8 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell )
             p_playlist->pp_items[p_playlist->i_index]->b_autodeletion
                                                                   = VLC_TRUE;
             playlist_Add( p_playlist, psz_value,
-                          PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END );
+                          PLAYLIST_INSERT | PLAYLIST_GO,
+                          p_playlist->i_index + 1 );
             vlc_object_release( p_playlist );
         }