Commit 53c06cf4 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

input: Ensure stats counters are released when changing sout

parent 4a0e43fb
......@@ -803,7 +803,8 @@ static void InitStatistics( input_thread_t *p_input )
if( priv->b_preparsing ) return;
/* Prepare statistics */
#define INIT_COUNTER( c, compute ) priv->counters.p_##c = \
#define INIT_COUNTER( c, compute ) free( priv->counters.p_##c ); \
priv->counters.p_##c = \
stats_CounterCreate( STATS_##compute);
if( libvlc_stats( p_input ) )
{
......
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