Commit bcb04e32 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

str_format_meta: fix reference counting

parent d2b076e1
......@@ -735,7 +735,10 @@ char *str_format_meta( input_thread_t *p_input, const char *s )
{
audio_output_t *aout = input_GetAout( p_input );
if( aout )
{
vol = aout_VolumeGet( aout );
vlc_object_release( aout );
}
}
if( vol >= 0.f )
{
......@@ -797,9 +800,6 @@ char *str_format_meta( input_thread_t *p_input, const char *s )
}
*(dst+d) = '\0';
if( p_input )
vlc_object_release( p_input );
return dst;
}
#undef INSERT_STRING
......
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