[vlc-devel] commit: meta reader: Add the input_item that we are reading in the structure. (Pierre d' Herbemont )
git version control
git at videolan.org
Thu Jan 7 02:38:27 CET 2010
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Jan 7 01:01:28 2010 +0100| [edd9673a257d1f15450c084defbf3ec7a9edb3f6] | committer: Pierre d'Herbemont
meta reader: Add the input_item that we are reading in the structure.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=edd9673a257d1f15450c084defbf3ec7a9edb3f6
---
include/vlc_demux.h | 2 ++
src/input/input.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/include/vlc_demux.h b/include/vlc_demux.h
index 68204d1..38351b8 100644
--- a/include/vlc_demux.h
+++ b/include/vlc_demux.h
@@ -82,6 +82,8 @@ typedef struct demux_meta_t
{
VLC_COMMON_MEMBERS
demux_t *p_demux; /** FIXME: use stream_t instead? */
+ input_item_t *p_item; /***< the input item that is being read */
+
vlc_meta_t *p_meta; /**< meta data */
int i_attachments; /**< number of attachments */
diff --git a/src/input/input.c b/src/input/input.c
index 91b8d25..3f8619d 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2767,6 +2767,7 @@ static void InputSourceMeta( input_thread_t *p_input,
if( !p_demux_meta )
return;
p_demux_meta->p_demux = p_demux;
+ p_demux_meta->p_item = p_input->p->p_item;
module_t *p_id3 = module_need( p_demux_meta, "meta reader", NULL, false );
if( p_id3 )
More information about the vlc-devel
mailing list