Commit 94e2f25b authored by Christophe Mutricy's avatar Christophe Mutricy

Fix refcount problem (thanks to DrakeGuan for spotting it)

parent 85078e25
...@@ -217,11 +217,15 @@ void vout_OSDSlider( vlc_object_t *p_caller, int i_channel, int i_position, ...@@ -217,11 +217,15 @@ void vout_OSDSlider( vlc_object_t *p_caller, int i_channel, int i_position,
subpicture_t *p_subpic; subpicture_t *p_subpic;
int i_x_margin, i_y_margin, i_x, i_y, i_width, i_height; int i_x_margin, i_y_margin, i_x, i_y, i_width, i_height;
if( p_vout == NULL || !config_GetInt( p_caller, "osd" ) || i_position < 0 ) if( p_vout == NULL )
{ {
return; return;
} }
if( !config_GetInt( p_caller, "osd" ) || i_position < 0 )
{
vlc_object_release( p_vout );
return;
}
p_subpic = vout_CreateWidget( p_vout->p_spu, i_channel ); p_subpic = vout_CreateWidget( p_vout->p_spu, i_channel );
if( p_subpic == NULL ) if( p_subpic == NULL )
{ {
......
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