[gupnp-av] Fix gupnp_didl_lite_container_get_total_deleted_child_count



commit 1a24ed7ed303bf17fa09f1a448d63fd8075904d7
Author: Ludovic Ferrandis <ludovic ferrandis intel com>
Date:   Fri Mar 29 10:52:38 2013 +0100

    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

 libgupnp-av/gupnp-didl-lite-container.c |    2 +-
 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);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]