[vlc-devel] [PATCH 1/2] oldhttp album art

Rémi Denis-Courmont remi at remlab.net
Wed Mar 21 13:09:22 CET 2012


On Wed, 21 Mar 2012 12:13:51 +0100, John Freed <okvlc at johnfreed.com>
wrote:
> diff --git a/src/input/input.c b/src/input/input.c
> index e3fb7da..0ce7f9a 100644
> --- a/src/input/input.c
> +++ b/src/input/input.c
> @@ -270,7 +270,8 @@ input_resource_t *input_DetachResource(
input_thread_t
> *p_input )
>   */
>  input_item_t *input_GetItem( input_thread_t *p_input )
>  {
> -    assert( p_input && p_input->p );
> +    if( !p_input || !p_input->p )
> +        return NULL;
>      return p_input->p->p_item;
>  }

This is definitely wrong.

-- 
Rémi Denis-Courmont
Sent from my collocated server



More information about the vlc-devel mailing list