]> git.sesse.net Git - vlc/commitdiff
meta reader: Add the input_item that we are reading in the structure.
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 7 Jan 2010 00:01:28 +0000 (01:01 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Thu, 7 Jan 2010 01:37:34 +0000 (02:37 +0100)
include/vlc_demux.h
src/input/input.c

index 68204d144bb1939165d64dc011da23a35d775b41..38351b88dc3f99cce1abffdbec9e9b622005c592 100644 (file)
@@ -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 */
index 91b8d25ff657d70a3f3a0dac556efc6a7abbc633..3f8619d6eed78650fe612c0487501944187c75b6 100644 (file)
@@ -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 )