summaryrefslogtreecommitdiff
path: root/libgupnp-av
diff options
context:
space:
mode:
authorSven Neumann <neumann@teufel.de>2014-11-19 14:12:04 +0100
committerJens Georg <mail@jensge.org>2014-12-23 22:13:31 +0100
commit5de2d22dd790134c6bbeb3dae523ccd5aa433f06 (patch)
tree47723ab7a5969de654059547430da431b8b31e91 /libgupnp-av
parentf9128ffaa44cef2a6ec4adb2f63913c4f135d771 (diff)
downloadgupnp-av-5de2d22dd790134c6bbeb3dae523ccd5aa433f06.tar.gz
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>
Diffstat (limited to 'libgupnp-av')
-rw-r--r--libgupnp-av/gupnp-didl-lite-object.c16
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));
}