<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head></head><body><div style="font-size: 12pt; font-family: Calibri,sans-serif;"><div>Missing file??</div><div><br></div><div>-- </div><div>Rémi Denis-Courmont</div><div>Sent from my NVIDIA Tegra-powered device</div><br><div id="htc_header">----- Reply message -----<br>De : "Julien 'Lta' BALLET" <elthariel@gmail.com><br>Pour : <vlc-devel@videolan.org><br>Cc : "Julien 'Lta' BALLET" <contact@lta.io><br>Objet : [vlc-devel] [PATCH 05/10] Add playlist/directory.c dummy playlist    module, whose job is to post input_item_t returned by a directory access        module (pf_readdir)<br>Date : lun., juin 16, 2014 15:41</div></div><br><pre style="word-wrap: break-word; white-space: pre-wrap;">From: Julien 'Lta' BALLET <contact@lta.io>

---
 modules/demux/Makefile.am         | 1 +
 modules/demux/playlist/playlist.c | 5 +++++
 modules/demux/playlist/playlist.h | 4 ++++
 3 files changed, 10 insertions(+)

diff --git a/modules/demux/Makefile.am b/modules/demux/Makefile.am
index c19caf1..5ff79ed 100644
--- a/modules/demux/Makefile.am
+++ b/modules/demux/Makefile.am
@@ -216,6 +216,7 @@ libplaylist_plugin_la_SOURCES = \
        demux/playlist/wpl.c \
        demux/playlist/xspf.c \
        demux/playlist/zpl.c \
+       demux/playlist/directory.c \
        demux/playlist/playlist.c demux/playlist/playlist.h
 demux_LTLIBRARIES += libplaylist_plugin.la
 
diff --git a/modules/demux/playlist/playlist.c b/modules/demux/playlist/playlist.c
index 0b4a053..076d4fe 100644
--- a/modules/demux/playlist/playlist.c
+++ b/modules/demux/playlist/playlist.c
@@ -145,6 +145,11 @@ vlc_module_begin ()
         add_shortcut( "playlist", "zpl" )
         set_capability( "demux", 10 )
         set_callbacks( Import_ZPL, Close_ZPL )
+    add_submodule ()
+        set_description( N_("Directory import") )
+        add_shortcut( "playlist", "directory" )
+        set_capability( "demux", 10 )
+        set_callbacks( Import_Dir, Close_Dir )
 vlc_module_end ()
 
 int Control(demux_t *demux, int query, va_list args)
diff --git a/modules/demux/playlist/playlist.h b/modules/demux/playlist/playlist.h
index 5f7db99..c1230cf 100644
--- a/modules/demux/playlist/playlist.h
+++ b/modules/demux/playlist/playlist.h
@@ -78,6 +78,10 @@ void Close_WPL ( vlc_object_t * );
 int Import_ZPL ( vlc_object_t * );
 void Close_ZPL ( vlc_object_t * );
 
+int Import_Dir ( vlc_object_t * );
+void Close_Dir ( vlc_object_t * );
+
+
 extern input_item_t * GetCurrentItem(demux_t *p_demux);
 
 bool CheckContentType( stream_t * p_stream, const char * psz_ctype );
-- 
1.9.3

_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a>

</pre></body></html>