Re: [PATCH 1/5] local-metadata: udpated to may_resolve() API



On Tue, 2011-02-22 at 16:32 +0100, Guillaume Emont wrote:
> +  if (media && grl_data_key_is_known (GRL_DATA (media),
> GRL_METADATA_KEY_URL))
> +    return has_compatible_media_url (media);
>   


media should be always non-NULL.

Either I would check it with g_return_val_if_fail(), or do the check in
core, before invoking the source function.

	J.A.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]