[vlc-devel] commit: Fix a segfault if the mask can' t be loaded and aso fail imediately if the file ( Rémi Duraffort )

Laurent Aimar fenrir at via.ecp.fr
Tue Jun 30 16:49:29 CEST 2009


Hi,

On Tue, Jun 30, 2009, git version control wrote:
> +    /* If the mask if empty return the picture */
> +    vlc_mutex_lock( &p_sys->lock );
> +    if( !p_sys->p_mask )
> +    {
> +        vlc_mutex_unlock( &p_sys->lock );
> +        return p_pic;
> +    }
 You must never do that with the current filter API.
The picture allocator must be used for every picture returned.

-- 
fenrir




More information about the vlc-devel mailing list