input.c: fixed a possible locking problem in vlc_input_item_GetInfo

parent 0f83abcf
......@@ -2547,8 +2547,9 @@ char *vlc_input_item_GetInfo( input_item_t *p_i,
{
if( !strcmp( p_cat->pp_infos[j]->psz_name, psz_name ) )
{
char *psz_ret = strdup( p_cat->pp_infos[j]->psz_value );
vlc_mutex_unlock( &p_i->lock );
return strdup( p_cat->pp_infos[j]->psz_value );
return psz_ret;
}
}
}
......
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