[gupnp-av] gupnp-didl-lite-object: fix namespace getters
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-av] gupnp-didl-lite-object: fix namespace getters
- Date: Tue, 23 Dec 2014 21:14:04 +0000 (UTC)
commit 5de2d22dd790134c6bbeb3dae523ccd5aa433f06
Author: Sven Neumann <neumann teufel de>
Date: Wed Nov 19 14:12:04 2014 +0100
gupnp-didl-lite-object: fix namespace getters
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=740365
Signed-off-by: Sven Neumann <neumann teufel de>
libgupnp-av/gupnp-didl-lite-object.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/libgupnp-av/gupnp-didl-lite-object.c b/libgupnp-av/gupnp-didl-lite-object.c
index b6f7bd2..3cd421e 100644
--- a/libgupnp-av/gupnp-didl-lite-object.c
+++ b/libgupnp-av/gupnp-didl-lite-object.c
@@ -1029,7 +1029,9 @@ gupnp_didl_lite_object_get_upnp_namespace (GUPnPDIDLLiteObject *object)
{
g_return_val_if_fail (GUPNP_IS_DIDL_LITE_OBJECT (object), NULL);
- return object->priv->upnp_ns;
+ return xml_util_get_ns (object->priv->xml_doc->doc,
+ GUPNP_XML_NAMESPACE_UPNP,
+ &(object->priv->upnp_ns));
}
/**
@@ -1046,7 +1048,9 @@ gupnp_didl_lite_object_get_dc_namespace (GUPnPDIDLLiteObject *object)
{
g_return_val_if_fail (GUPNP_IS_DIDL_LITE_OBJECT (object), NULL);
- return object->priv->dc_ns;
+ return xml_util_get_ns (object->priv->xml_doc->doc,
+ GUPNP_XML_NAMESPACE_DC,
+ &(object->priv->dc_ns));
}
/**
@@ -1080,7 +1084,9 @@ gupnp_didl_lite_object_get_dlna_namespace (GUPnPDIDLLiteObject *object)
{
g_return_val_if_fail (GUPNP_IS_DIDL_LITE_OBJECT (object), NULL);
- return object->priv->dlna_ns;
+ return xml_util_get_ns (object->priv->xml_doc->doc,
+ GUPNP_XML_NAMESPACE_DLNA,
+ &(object->priv->dlna_ns));
}
/**
@@ -1097,7 +1103,9 @@ gupnp_didl_lite_object_get_pv_namespace (GUPnPDIDLLiteObject *object)
{
g_return_val_if_fail (GUPNP_IS_DIDL_LITE_OBJECT (object), NULL);
- return object->priv->pv_ns;
+ return xml_util_get_ns (object->priv->xml_doc->doc,
+ GUPNP_XML_NAMESPACE_PV,
+ &(object->priv->pv_ns));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]