[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)

Rémi Denis-Courmont remi at remlab.net
Mon Jun 16 15:17:44 CEST 2014


Missing file??

-- 
Rémi Denis-Courmont
Sent from my NVIDIA Tegra-powered device

----- Reply message -----
De : "Julien 'Lta' BALLET" <elthariel at gmail.com>
Pour : <vlc-devel at videolan.org>
Cc : "Julien 'Lta' BALLET" <contact at lta.io>
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)
Date : lun., juin 16, 2014 15:41

From: Julien 'Lta' BALLET <contact at 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:
https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140616/f90af330/attachment.html>


More information about the vlc-devel mailing list