[PATCH] grl-media-source: fix key filtering
- From: lionel g landwerlin linux intel com
- To: grilo-list gnome org
- Subject: [PATCH] grl-media-source: fix key filtering
- Date: Wed, 23 Mar 2011 17:58:04 +0000
From: Lionel Landwerlin <lionel g landwerlin linux intel com>
Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
src/grl-metadata-source.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/grl-metadata-source.c b/src/grl-metadata-source.c
index c09b314..ab475f4 100644
--- a/src/grl-metadata-source.c
+++ b/src/grl-metadata-source.c
@@ -1094,7 +1094,6 @@ grl_metadata_source_filter_writable (GrlMetadataSource *source,
{
const GList *writable_keys;
GList *filtered;
- GList *tmp;
g_return_val_if_fail (GRL_IS_METADATA_SOURCE (source), NULL);
g_return_val_if_fail (keys != NULL, NULL);
@@ -1110,13 +1109,12 @@ grl_metadata_source_filter_writable (GrlMetadataSource *source,
filtered = filter_key_list (source, keys, TRUE, writable_keys);
- tmp = *keys;
- *keys = filtered;
-
if (return_filtered) {
- return tmp;
+ g_message ("%s: retfilter=%p", G_STRFUNC, filtered);
+ return filtered;
} else {
- g_list_free (tmp);
+ g_message ("%s: ret NULL", G_STRFUNC);
+ g_list_free (filtered);
return NULL;
}
}
--
1.7.4.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]