Commit 0afa4317 authored by Laurent Aimar's avatar Laurent Aimar

* stream_output.h: added a vlc_meta_t field to sout_instance_t,

 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.
parent 90fdcf71
...@@ -233,8 +233,11 @@ struct sout_instance_t ...@@ -233,8 +233,11 @@ struct sout_instance_t
{ {
VLC_COMMON_MEMBERS VLC_COMMON_MEMBERS
char * psz_sout; char *psz_sout;
char * psz_chain; 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 */ /* muxer data */
int i_preheader; /* max over all muxer */ int i_preheader; /* max over all muxer */
......
...@@ -312,6 +312,9 @@ typedef int (*httpd_file_callback_t)( httpd_file_sys_t*, httpd_file_t *, uint8_t ...@@ -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_redirect_t httpd_redirect_t;
typedef struct httpd_stream_t httpd_stream_t; typedef struct httpd_stream_t httpd_stream_t;
/* divers */
typedef struct vlc_meta_t vlc_meta_t;
/***************************************************************************** /*****************************************************************************
* Variable callbacks * Variable callbacks
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vlc_meta.h * vlc_meta.h
***************************************************************************** *****************************************************************************
* Copyright (C) 2004 VideoLAN * 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> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
#define VLC_META_CODEC_NAME N_("Codec Name") #define VLC_META_CODEC_NAME N_("Codec Name")
#define VLC_META_CODEC_DESCRIPTION N_("Codec Description") #define VLC_META_CODEC_DESCRIPTION N_("Codec Description")
typedef struct vlc_meta_t vlc_meta_t;
struct vlc_meta_t struct vlc_meta_t
{ {
/* meta name/value pairs */ /* meta name/value pairs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment