}
va_start( args, psz_format );
- if( vasprintf( &p_info->psz_value, psz_format, args) )
+ if( vasprintf( &p_info->psz_value, psz_format, args) == -1 )
p_info->psz_value = NULL;
va_end( args );
DECMALLOC_NULL( p_input, input_item_t );
input_ItemInit( p_obj, p_input );
- vlc_gc_init( p_input, input_ItemDestroy, (void *)p_obj );
+ vlc_gc_init( p_input, input_ItemDestroy, (void *)p_obj->p_libvlc );
vlc_object_lock( p_obj->p_libvlc );
p_input->i_id = ++priv->i_last_input_id;