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

variables: use common exit code in var_Change()

parent 6da812e7
......@@ -500,10 +500,9 @@ int (var_Change)(vlc_object_t *p_this, const char *psz_name,
break;
if( i == p_var->choices.i_count )
{
/* Not found */
vlc_mutex_unlock( &p_priv->var_lock );
return VLC_EGENERIC;
{ /* Not found */
ret = VLC_EGENERIC;
break;
}
p_var->ops->pf_free( &p_var->choices.p_values[i] );
......
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