]> git.sesse.net Git - vlc/blobdiff - modules/demux/playlist/pls.c
A bit of headers cleanup
[vlc] / modules / demux / playlist / pls.c
index ebd89c91a0dbcc83a16d6b2aa5785416270bd6e6..bf1b2a4ba0b16e6876b0b1b6dcb76ed2b896b983 100644 (file)
@@ -26,8 +26,7 @@
  * Preamble
  *****************************************************************************/
 #include <vlc/vlc.h>
-#include <vlc/input.h>
-#include <vlc/intf.h>
+#include <vlc_demux.h>
 
 #include "playlist.h"
 
@@ -157,7 +156,8 @@ static int Demux( demux_t *p_demux )
                                             0, NULL, -1 );
                 input_ItemCopyOptions( p_current->p_input, p_input );
                 playlist_BothAddInput( p_playlist, p_input, p_item_in_category,
-                                        PLAYLIST_APPEND, PLAYLIST_END );
+                                       PLAYLIST_APPEND | PLAYLIST_SPREPARSE,
+                                       PLAYLIST_END, NULL, NULL );
             }
             else
             {
@@ -213,7 +213,8 @@ static int Demux( demux_t *p_demux )
         p_input = input_ItemNewExt( p_playlist, psz_mrl, psz_name,0, NULL, -1 );
         input_ItemCopyOptions( p_current->p_input, p_input );
         playlist_BothAddInput( p_playlist, p_input, p_item_in_category,
-                               PLAYLIST_APPEND, PLAYLIST_END );
+                               PLAYLIST_APPEND | PLAYLIST_SPREPARSE,
+                               PLAYLIST_END, NULL, NULL );
         free( psz_mrl_orig );
         psz_mrl = NULL;
     }
@@ -228,7 +229,7 @@ static int Demux( demux_t *p_demux )
     }
 
     HANDLE_PLAY_AND_RELEASE;
-    return VLC_SUCCESS;
+    return -1; /* Needed for correct operation of go back */
 }
 
 static int Control( demux_t *p_demux, int i_query, va_list args )