[rygel-grilo] Fix appropriate value when getting data from properties
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel-grilo] Fix appropriate value when getting data from properties
- Date: Wed, 28 Jul 2010 08:39:53 +0000 (UTC)
commit 169d97084bf0d33febd0c64ee7e8bef7c4613d42
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Tue Jul 27 12:55:45 2010 +0200
Fix appropriate value when getting data from properties
Paths and Parents are encoded in GValues as object paths, not as strings.
Fix it.
lib/media-server2-client.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/media-server2-client.c b/lib/media-server2-client.c
index c146354..1d8a7ed 100644
--- a/lib/media-server2-client.c
+++ b/lib/media-server2-client.c
@@ -1289,11 +1289,11 @@ ms2_client_get_path (GHashTable *properties)
g_return_val_if_fail (properties, NULL);
val = g_hash_table_lookup (properties, MS2_PROP_PATH);
- if (!val || !G_VALUE_HOLDS_STRING (val)) {
+ if (!val || !G_VALUE_HOLDS_BOXED (val)) {
return NULL;
}
- return g_value_get_string (val);
+ return g_value_get_boxed (val);
}
/**
@@ -1312,11 +1312,11 @@ ms2_client_get_parent (GHashTable *properties)
g_return_val_if_fail (properties, NULL);
val = g_hash_table_lookup (properties, MS2_PROP_PARENT);
- if (!val || !G_VALUE_HOLDS_STRING (val)) {
+ if (!val || !G_VALUE_HOLDS_BOXED (val)) {
return NULL;
}
- return g_value_get_string (val);
+ return g_value_get_boxed (val);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]