[vlc-devel] commit: Re-enable m3u parsing ( Rafaël Carré )
git version control
git at videolan.org
Mon Mar 17 11:46:35 CET 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Mar 17 11:46:09 2008 +0100| [55083e6b6e768dc817b2f88e6d53232c20729075]
Re-enable m3u parsing
This check is already made by the new safe option flag (still broken, but to be fixed one day)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=55083e6b6e768dc817b2f88e6d53232c20729075
---
modules/demux/playlist/m3u.c | 27 +++++++++------------------
1 files changed, 9 insertions(+), 18 deletions(-)
diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c
index 263f97d..89d57c4 100644
--- a/modules/demux/playlist/m3u.c
+++ b/modules/demux/playlist/m3u.c
@@ -113,8 +113,6 @@ static int Demux( demux_t *p_demux )
const char**ppsz_options = NULL;
int i_options = 0;
vlc_bool_t b_cleanup = VLC_FALSE;
- vlc_bool_t b_enable_extvlcopt = var_CreateGetInteger( p_demux,
- "m3u-extvlcopt" );
input_item_t *p_input;
INIT_PLAYLIST_STUFF;
@@ -154,22 +152,15 @@ static int Demux( demux_t *p_demux )
else if( !strncasecmp( psz_parse, "EXTVLCOPT:",
sizeof("EXTVLCOPT:") -1 ) )
{
- if( b_enable_extvlcopt )
- {
- /* VLC Option */
- char *psz_option;
- psz_parse += sizeof("EXTVLCOPT:") -1;
- if( !*psz_parse ) goto error;
-
- psz_option = MaybeFromLocaleDup( psz_parse );
- if( psz_option )
- INSERT_ELEM( ppsz_options, i_options, i_options,
- psz_option );
- }
- else
- {
- msg_Err( p_demux, "m3u EXTVLCOPT parsing is disabled for security reasons. If you need it and trust the m3u playlist you are trying to open, please append --m3u-extvlcopt to your command line." );
- }
+ /* VLC Option */
+ char *psz_option;
+ psz_parse += sizeof("EXTVLCOPT:") -1;
+ if( !*psz_parse ) goto error;
+
+ psz_option = MaybeFromLocaleDup( psz_parse );
+ if( psz_option )
+ INSERT_ELEM( ppsz_options, i_options, i_options,
+ psz_option );
}
}
else if( !strncasecmp( psz_parse, "RTSPtext", sizeof("RTSPtext") -1 ) )
More information about the vlc-devel
mailing list