]> git.sesse.net Git - vlc/commitdiff
Re-enable m3u parsing
authorRafaël Carré <funman@videolan.org>
Mon, 17 Mar 2008 10:46:09 +0000 (11:46 +0100)
committerRafaël Carré <funman@videolan.org>
Mon, 17 Mar 2008 10:46:09 +0000 (11:46 +0100)
This check is already made by the new safe option flag (still broken, but to be fixed one day)

modules/demux/playlist/m3u.c

index 263f97d0021869b0981fda18e00124ca1b03a951..89d57c4d733efde4b7247f169127342452ee9291 100644 (file)
@@ -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 ) )