]> git.sesse.net Git - vlc/blobdiff - modules/demux/playlist/playlist.c
Replace vlc_bool_t by bool, VLC_TRUE by true and VLC_FALSE by false.
[vlc] / modules / demux / playlist / playlist.c
index 0e6ac6df14327e5ee4ae8f214cf9864533d32977..442abb58fecb4a615a699474d33702926a368d23 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc_demux.h>
 #include <vlc_playlist.h>
 #define SKIP_ADS_LONGTEXT N_( "Use playlist options usually used to prevent " \
     "ads skipping to detect ads and prevent adding them to the playlist." )
 
-#define EXTVLCOPT_TEXT N_( "Enable parsing of EXTVLCOPT: options" )
-#define EXTVLCOPT_LONGTEXT N_( "Enable parsing of EXTVLCOPT: options in m3u " \
-    "playlists. This option is default disabled to prevent untrusted sources " \
-    "using VLC options without the user's knowledge." )
-
 vlc_module_begin();
     add_shortcut( "playlist" );
     set_category( CAT_INPUT );
     set_subcategory( SUBCAT_INPUT_DEMUX );
 
     add_bool( "playlist-autostart", 1, NULL,
-              AUTOSTART_TEXT, AUTOSTART_LONGTEXT, VLC_FALSE );
+              AUTOSTART_TEXT, AUTOSTART_LONGTEXT, false );
 
-    add_integer( "parent-item", 0, NULL, NULL, NULL, VLC_TRUE );
+    add_integer( "parent-item", 0, NULL, NULL, NULL, true );
         change_internal();
 
     add_bool( "playlist-skip-ads", 1, NULL,
-              SKIP_ADS_TEXT, SKIP_ADS_LONGTEXT, VLC_FALSE );
+              SKIP_ADS_TEXT, SKIP_ADS_LONGTEXT, false );
 
     set_shortname( _("Playlist") );
     set_description( _("Playlist") );
@@ -70,8 +69,6 @@ vlc_module_begin();
         set_description( _("M3U playlist import") );
         add_shortcut( "m3u-open" );
         set_capability( "demux2", 10 );
-        add_bool( "m3u-extvlcopt", VLC_FALSE, NULL,
-                  EXTVLCOPT_TEXT, EXTVLCOPT_LONGTEXT, VLC_FALSE );
         set_callbacks( E_(Import_M3U), E_(Close_M3U) );
     add_submodule();
         set_description( _("PLS playlist import") );
@@ -104,8 +101,8 @@ vlc_module_begin();
         add_shortcut( "shout-winamp" );
         set_capability( "demux2", 10 );
         set_callbacks( E_(Import_Shoutcast), E_(Close_Shoutcast) );
-        add_bool( "shoutcast-show-adult", VLC_FALSE, NULL,
-                   SHOW_ADULT_TEXT, SHOW_ADULT_LONGTEXT, VLC_FALSE );
+        add_bool( "shoutcast-show-adult", false, NULL,
+                   SHOW_ADULT_TEXT, SHOW_ADULT_LONGTEXT, false );
     add_submodule();
         set_description( _("ASX playlist import") );
         add_shortcut( "asx-open" );