]> git.sesse.net Git - vlc/blobdiff - modules/demux/playlist/playlist.c
RTP: Initialize ref_ts to zero
[vlc] / modules / demux / playlist / playlist.c
index b9731dae3b7e218074708994d36bc112d8bafcaf..8e104c074473bf08ffc19b7eb8ec425752b54996 100644 (file)
@@ -54,13 +54,13 @@ vlc_module_begin ()
     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") )
@@ -165,6 +165,14 @@ vlc_module_begin ()
         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