[vlc-commits] stream output: remove nul/unused object members

Rémi Denis-Courmont git at videolan.org
Sat Oct 6 16:09:31 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct  6 17:00:53 2012 +0300| [9346a54290b3329987e26c441e0d45cd05897b4b] | committer: Rémi Denis-Courmont

stream output: remove nul/unused object members

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9346a54290b3329987e26c441e0d45cd05897b4b
---

 include/vlc_sout.h                |   13 -------------
 modules/mux/mp4.c                 |    6 +++---
 src/stream_output/stream_output.c |   11 -----------
 3 files changed, 3 insertions(+), 27 deletions(-)

diff --git a/include/vlc_sout.h b/include/vlc_sout.h
index 011ba02..1147783 100644
--- a/include/vlc_sout.h
+++ b/include/vlc_sout.h
@@ -47,17 +47,11 @@ struct sout_instance_t
 
     char *psz_sout;
 
-    /* meta data (Read only) XXX it won't be set before the first packet received */
-    vlc_meta_t          *p_meta;
-
     /** count of output that can't control the space */
     int                 i_out_pace_nocontrol;
 
     vlc_mutex_t         lock;
     sout_stream_t       *p_stream;
-
-    /** Private */
-    sout_instance_sys_t *p_sys;
 };
 
 /****************************************************************************
@@ -73,10 +67,6 @@ struct sout_access_out_t
     module_t                *p_module;
     char                    *psz_access;
 
-    int                      i_writes;
-    /** Local counter reset each time it is transferred to stats */
-    int64_t                  i_sent_bytes;
-
     char                    *psz_path;
     sout_access_out_sys_t   *p_sys;
     int                     (*pf_seek)( sout_access_out_t *, off_t );
@@ -195,9 +185,6 @@ struct sout_stream_t
     config_chain_t        *p_cfg;
     sout_stream_t     *p_next;
 
-    /* Subpicture unit */
-    spu_t             *p_spu;
-
     /* add, remove a stream */
     sout_stream_id_t *(*pf_add)( sout_stream_t *, es_format_t * );
     int               (*pf_del)( sout_stream_t *, sout_stream_id_t * );
diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c
index 728a4e2..999e7d1 100644
--- a/modules/mux/mp4.c
+++ b/modules/mux/mp4.c
@@ -964,7 +964,6 @@ static bo_t *GetUdtaTag( sout_mux_t *p_mux )
 {
     sout_mux_sys_t *p_sys = p_mux->p_sys;
     bo_t *udta = box_new( "udta" );
-    vlc_meta_t *p_meta = p_mux->p_sout->p_meta;
     int i_track;
 
     /* Requirements */
@@ -998,8 +997,9 @@ static bo_t *GetUdtaTag( sout_mux_t *p_mux )
         box_fix( box );
         box_gather( udta, box );
     }
-
+#if 0
     /* Misc atoms */
+    vlc_meta_t *p_meta = p_mux->p_sout->p_meta;
     if( p_meta )
     {
 #define ADD_META_BOX( type, box_string ) { \
@@ -1024,7 +1024,7 @@ static bo_t *GetUdtaTag( sout_mux_t *p_mux )
         ADD_META_BOX( URL, "url" );
 #undef ADD_META_BOX
     }
-
+#endif
     box_fix( udta );
     return udta;
 }
diff --git a/src/stream_output/stream_output.c b/src/stream_output/stream_output.c
index 34e2b26..715bdf2 100644
--- a/src/stream_output/stream_output.c
+++ b/src/stream_output/stream_output.c
@@ -109,9 +109,7 @@ sout_instance_t *sout_NewInstance( vlc_object_t *p_parent, const char *psz_dest
 
     /* *** init descriptor *** */
     p_sout->psz_sout    = strdup( psz_dest );
-    p_sout->p_meta      = NULL;
     p_sout->i_out_pace_nocontrol = 0;
-    p_sout->p_sys       = NULL;
 
     vlc_mutex_init( &p_sout->lock );
     p_sout->p_stream = NULL;
@@ -145,12 +143,6 @@ void sout_DeleteInstance( sout_instance_t * p_sout )
     /* *** free all string *** */
     FREENULL( p_sout->psz_sout );
 
-    /* delete meta */
-    if( p_sout->p_meta )
-    {
-        vlc_meta_Delete( p_sout->p_meta );
-    }
-
     vlc_mutex_destroy( &p_sout->lock );
 
     /* *** free structure *** */
@@ -269,9 +261,6 @@ sout_access_out_t *sout_AccessOutNew( vlc_object_t *p_sout,
     p_access->pf_control = NULL;
     p_access->p_module   = NULL;
 
-    p_access->i_writes = 0;
-    p_access->i_sent_bytes = 0;
-
     p_access->p_module   =
         module_need( p_access, "sout access", p_access->psz_access, true );
 



More information about the vlc-commits mailing list