]> git.sesse.net Git - vlc/commitdiff
* stream_output.h: added a vlc_meta_t field to sout_instance_t,
authorLaurent Aimar <fenrir@videolan.org>
Wed, 10 Mar 2004 21:54:28 +0000 (21:54 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 10 Mar 2004 21:54:28 +0000 (21:54 +0000)
 this way meta data will be available for stream_outs and muxers.
 The only 'problem' is that it will be available for sure only after
 that the first data packet is received by the stream output.

include/stream_output.h
include/vlc_common.h
include/vlc_meta.h

index 6b44508d7ce61b7ffe09fbe6307e5c928fc8b99f..d0787a57d548a72e6f67a72c27687d55cb29d6af 100644 (file)
@@ -233,20 +233,23 @@ struct sout_instance_t
 {
     VLC_COMMON_MEMBERS
 
-    char * psz_sout;
-    char * psz_chain;
+    char *psz_sout;
+    char *psz_chain;
+
+    /* meta data (Read only) XXX it won't be set before the first packet received */
+    vlc_meta_t          *p_meta;
 
     /* muxer data */
-    int                     i_preheader;    /* max over all muxer */
+    int                 i_preheader;    /* max over all muxer */
 
-    int                     i_padding;      /* needed by some decoders */
-    int                     i_out_pace_nocontrol;   /* count of output that can't control the space */
+    int                 i_padding;      /* needed by some decoders */
+    int                 i_out_pace_nocontrol;   /* count of output that can't control the space */
 
-    vlc_mutex_t             lock;
-    sout_stream_t           *p_stream;
+    vlc_mutex_t         lock;
+    sout_stream_t       *p_stream;
 
     /* sout private */
-    sout_instance_sys_t     *p_sys;
+    sout_instance_sys_t *p_sys;
 };
 
 static inline sout_cfg_t *sout_cfg_find( sout_cfg_t *p_cfg, char *psz_name )
index ce07045d892c1ff856c8412c81e8f92c5ff8c16b..1ca86bdfa81527b57b61ed069f67dfcbcc6dc8e4 100644 (file)
@@ -312,6 +312,9 @@ typedef int (*httpd_file_callback_t)( httpd_file_sys_t*, httpd_file_t *, uint8_t
 typedef struct httpd_redirect_t httpd_redirect_t;
 typedef struct httpd_stream_t httpd_stream_t;
 
+/* divers */
+typedef struct vlc_meta_t vlc_meta_t;
+
 
 /*****************************************************************************
  * Variable callbacks
index abed36d36f33d914d275da9e630fab9619fab74f..4467b88ae150cff983c23beefbd8949f67475285 100644 (file)
@@ -2,7 +2,7 @@
  * vlc_meta.h
  *****************************************************************************
  * Copyright (C) 2004 VideoLAN
- * $Id: vlc_meta.h,v 1.2 2004/03/03 12:01:17 fenrir Exp $
+ * $Id$
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -39,7 +39,6 @@
 #define VLC_META_CODEC_NAME         N_("Codec Name")
 #define VLC_META_CODEC_DESCRIPTION  N_("Codec Description")
 
-typedef struct vlc_meta_t vlc_meta_t;
 struct vlc_meta_t
 {
     /* meta name/value pairs */