[vlc-commits] stats: remove encoder if !ENABLE_SOUT

Rémi Denis-Courmont git at videolan.org
Sat Mar 9 15:30:56 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar  9 16:30:46 2013 +0200| [2eecbeed733ffd22a75ed75a17b63e8d75112923] | committer: Rémi Denis-Courmont

stats: remove encoder if !ENABLE_SOUT

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

 modules/misc/stats.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/misc/stats.c b/modules/misc/stats.c
index 7d97115..c989327 100644
--- a/modules/misc/stats.c
+++ b/modules/misc/stats.c
@@ -94,6 +94,7 @@ static int OpenDecoder ( vlc_object_t *p_this )
 }
 
 /*** Encoder ***/
+#ifdef ENABLE_SOUT
 static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
 {
     (void)p_pict;
@@ -127,7 +128,9 @@ static int OpenEncoder ( vlc_object_t *p_this )
 
     return VLC_SUCCESS;
 }
+#endif
 
+/*** Demuxer ***/
 struct demux_sys_t
 {
     es_format_t     fmt;
@@ -206,11 +209,13 @@ static void CloseDemux ( vlc_object_t *p_this )
 
 vlc_module_begin ()
     set_shortname( N_("Stats"))
+#ifdef ENABLE_SOUT
     set_description( N_("Stats encoder function") )
     set_capability( "encoder", 0 )
     add_shortcut( "stats" )
     set_callbacks( OpenEncoder, NULL )
     add_submodule ()
+#endif
         set_section( N_( "Stats decoder" ), NULL )
         set_description( N_("Stats decoder function") )
         set_capability( "decoder", 0 )



More information about the vlc-commits mailing list