[vlc-devel] commit: Cleanup input stats when sout fails ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed Feb 11 22:12:38 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Feb 11 22:41:02 2009 +0200| [f90f0553f7e7d1ac8e6e02a92613abc17206473d] | committer: Rémi Denis-Courmont
Cleanup input stats when sout fails
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f90f0553f7e7d1ac8e6e02a92613abc17206473d
---
src/input/input.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 4d2ac51..49abe70 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1142,7 +1142,7 @@ static int Init( input_thread_t * p_input )
#ifdef ENABLE_SOUT
ret = InitSout( p_input );
if( ret != VLC_SUCCESS )
- return ret; /* FIXME: goto error; should be better here */
+ goto error_stats;
#endif
/* Create es out */
@@ -1240,6 +1240,9 @@ error:
input_ressource_SetInput( p_input->p->p_ressource, NULL );
}
+#ifdef ENABLE_SOUT
+error_stats:
+#endif
if( !p_input->b_preparsing && libvlc_stats( p_input ) )
{
#define EXIT_COUNTER( c ) do { if( p_input->p->counters.p_##c ) \
More information about the vlc-devel
mailing list