set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_DEMUX )
- add_bool( "playlist-autostart", 1, NULL,
+ add_bool( "playlist-autostart", true, NULL,
AUTOSTART_TEXT, AUTOSTART_LONGTEXT, false )
add_integer( "parent-item", 0, NULL, NULL, NULL, true )
change_internal ()
- add_bool( "playlist-skip-ads", 1, NULL,
+ add_bool( "playlist-skip-ads", true, NULL,
SKIP_ADS_TEXT, SKIP_ADS_LONGTEXT, false )
set_shortname( N_("Playlist") )
set_callbacks( Import_ZPL, Close_ZPL )
vlc_module_end ()
+input_item_t * GetCurrentItem(demux_t *p_demux)
+{
+ input_thread_t *p_input_thread = demux_GetParentInput( p_demux );
+ input_item_t *p_current_input = input_GetItem( p_input_thread );
+ vlc_gc_incref(p_current_input);
+ vlc_object_release(p_input_thread);
+ return p_current_input;
+}
/**
* Find directory part of the path to the playlist file, in case of