summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Ferrandis <ludovic.ferrandis@intel.com>2013-03-29 10:52:38 +0100
committerJens Georg <mail@jensge.org>2013-05-30 10:35:59 +0200
commit1a24ed7ed303bf17fa09f1a448d63fd8075904d7 (patch)
tree7e33685185ebb12a9e82a3691843a4773e1211c9
parent3e820dcd0c7ba39dabf44e9e9448d2c02eede6db (diff)
downloadgupnp-av-1a24ed7ed303bf17fa09f1a448d63fd8075904d7.tar.gz
Fix gupnp_didl_lite_container_get_total_deleted_child_count
0 is a valid value for the property upnp:totalDeletedChildCount. Return -1 instead of 0 when the property is not found. Same behavior as res@updateCount. https://bugzilla.gnome.org/show_bug.cgi?id=696837
-rw-r--r--libgupnp-av/gupnp-didl-lite-container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgupnp-av/gupnp-didl-lite-container.c b/libgupnp-av/gupnp-didl-lite-container.c
index 16a535a..c21643a 100644
--- a/libgupnp-av/gupnp-didl-lite-container.c
+++ b/libgupnp-av/gupnp-didl-lite-container.c
@@ -367,7 +367,7 @@ gupnp_didl_lite_container_get_total_deleted_child_count
return xml_util_get_uint_child_element (xml_node,
"totalDeletedChildCount",
- 0);
+ -1);
}
/**