Commit aa555f79 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

playlist: remove no-op PREPARSE and SPREPARSE flags

PLAYLIST_SPREPARSE is not used anywhere. PLAYLIST_PREPARSE is set but
has no effects whatsoever.
parent 7a94f2e6
...@@ -210,8 +210,6 @@ enum ...@@ -210,8 +210,6 @@ enum
#define PLAYLIST_INSERT 0x0001 #define PLAYLIST_INSERT 0x0001
#define PLAYLIST_APPEND 0x0002 #define PLAYLIST_APPEND 0x0002
#define PLAYLIST_GO 0x0004 #define PLAYLIST_GO 0x0004
#define PLAYLIST_PREPARSE 0x0008
#define PLAYLIST_SPREPARSE 0x0010
#define PLAYLIST_NO_REBUILD 0x0020 #define PLAYLIST_NO_REBUILD 0x0020
#define PLAYLIST_END -1 #define PLAYLIST_END -1
......
...@@ -235,7 +235,7 @@ int Open::openMRLwithOptions( intf_thread_t* p_intf, ...@@ -235,7 +235,7 @@ int Open::openMRLwithOptions( intf_thread_t* p_intf,
/* Add to playlist */ /* Add to playlist */
int i_ret = playlist_AddExt( THEPL, int i_ret = playlist_AddExt( THEPL,
qtu(mrl), title, qtu(mrl), title,
PLAYLIST_APPEND | (b_start ? PLAYLIST_GO : PLAYLIST_PREPARSE), PLAYLIST_APPEND | (b_start ? PLAYLIST_GO : 0),
PLAYLIST_END, PLAYLIST_END,
-1, -1,
i_options, ppsz_options, VLC_INPUT_OPTION_TRUSTED, i_options, ppsz_options, VLC_INPUT_OPTION_TRUSTED,
......
...@@ -579,7 +579,7 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L, ...@@ -579,7 +579,7 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
/* FIXME: playlist_AddInput() can fail */ /* FIXME: playlist_AddInput() can fail */
playlist_AddInput( p_playlist, p_input, playlist_AddInput( p_playlist, p_input,
PLAYLIST_APPEND | PLAYLIST_APPEND |
( b_play ? PLAYLIST_GO : PLAYLIST_PREPARSE ), ( b_play ? PLAYLIST_GO : 0 ),
PLAYLIST_END, true ); PLAYLIST_END, true );
i_count ++; /* increment counter */ i_count ++; /* increment counter */
vlc_gc_decref( p_input ); vlc_gc_decref( p_input );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment