[vlc-commits] playlist: remove no-op PREPARSE and SPREPARSE flags
Rémi Denis-Courmont
git at videolan.org
Sat Nov 19 12:35:44 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 19 11:52:58 2016 +0200| [aa555f7966131c5d439ac443ea4e7514e9ac2b38] | committer: Rémi Denis-Courmont
playlist: remove no-op PREPARSE and SPREPARSE flags
PLAYLIST_SPREPARSE is not used anywhere. PLAYLIST_PREPARSE is set but
has no effects whatsoever.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa555f7966131c5d439ac443ea4e7514e9ac2b38
---
include/vlc_playlist.h | 2 --
modules/gui/qt/recents.cpp | 2 +-
modules/lua/vlc.c | 2 +-
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index a40c903..d6de572 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -210,8 +210,6 @@ enum
#define PLAYLIST_INSERT 0x0001
#define PLAYLIST_APPEND 0x0002
#define PLAYLIST_GO 0x0004
-#define PLAYLIST_PREPARSE 0x0008
-#define PLAYLIST_SPREPARSE 0x0010
#define PLAYLIST_NO_REBUILD 0x0020
#define PLAYLIST_END -1
diff --git a/modules/gui/qt/recents.cpp b/modules/gui/qt/recents.cpp
index 792a62c..9484b6d 100644
--- a/modules/gui/qt/recents.cpp
+++ b/modules/gui/qt/recents.cpp
@@ -235,7 +235,7 @@ int Open::openMRLwithOptions( intf_thread_t* p_intf,
/* Add to playlist */
int i_ret = playlist_AddExt( THEPL,
qtu(mrl), title,
- PLAYLIST_APPEND | (b_start ? PLAYLIST_GO : PLAYLIST_PREPARSE),
+ PLAYLIST_APPEND | (b_start ? PLAYLIST_GO : 0),
PLAYLIST_END,
-1,
i_options, ppsz_options, VLC_INPUT_OPTION_TRUSTED,
diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c
index 70af88e..265f1e5 100644
--- a/modules/lua/vlc.c
+++ b/modules/lua/vlc.c
@@ -579,7 +579,7 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput( p_playlist, p_input,
PLAYLIST_APPEND |
- ( b_play ? PLAYLIST_GO : PLAYLIST_PREPARSE ),
+ ( b_play ? PLAYLIST_GO : 0 ),
PLAYLIST_END, true );
i_count ++; /* increment counter */
vlc_gc_decref( p_input );
More information about the vlc-commits
mailing list