[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)
Julien 'Lta' BALLET
elthariel at gmail.com
Mon Jun 16 14:41:07 CEST 2014
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
More information about the vlc-devel
mailing list