Re: [PATCH 1/5] local-metadata: udpated to may_resolve() API
- From: "Juan A." Suárez Romero <jasuarez igalia com>
- To: grilo-list gnome org
- Subject: Re: [PATCH 1/5] local-metadata: udpated to may_resolve() API
- Date: Thu, 24 Feb 2011 13:57:08 +0100
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]