[vlc-devel] commit: Use stats demux only if selected ( Rafaël Carré )
git version control
git at videolan.org
Fri Jun 6 11:38:38 CEST 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Jun 6 11:39:54 2008 +0200| [38cc65962e877401d6209e8b925f345fc17369ec]
Use stats demux only if selected
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=38cc65962e877401d6209e8b925f345fc17369ec
---
modules/misc/stats/demux.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/misc/stats/demux.c b/modules/misc/stats/demux.c
index 6dfb365..7f9d029 100644
--- a/modules/misc/stats/demux.c
+++ b/modules/misc/stats/demux.c
@@ -63,6 +63,12 @@ int OpenDemux ( vlc_object_t *p_this )
demux_t *p_demux = (demux_t*)p_this;
demux_sys_t *p_sys;
+ p_demux->p_sys = NULL;
+
+ /* Only when selected */
+ if( *p_demux->psz_demux == '\0' )
+ return VLC_EGENERIC;
+
msg_Dbg( p_demux, "Init Stat demux" );
p_demux->pf_demux = Demux;
More information about the vlc-devel
mailing list