[grilo-plugins] dleyna: ChildCount is an int32, not a uint32



commit 555e1f1a83cc986c83184b811440150371eced4f
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jul 16 15:23:31 2014 +0200

    dleyna: ChildCount is an int32, not a uint32
    
    As verified inspecting the dleyna-server source code.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733253

 src/dleyna/grl-dleyna-source.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/dleyna/grl-dleyna-source.c b/src/dleyna/grl-dleyna-source.c
index 10c35c9..1129678 100644
--- a/src/dleyna/grl-dleyna-source.c
+++ b/src/dleyna/grl-dleyna-source.c
@@ -524,7 +524,7 @@ media_set_property (GrlMedia *media,
     }
   }
   else if (g_strcmp0 (key, "ChildCount") == 0) {
-    guint32 count = g_variant_get_uint32 (value);
+    gint32 count = g_variant_get_int32 (value);
     if (GRL_IS_MEDIA_BOX (media)) {
       grl_media_box_set_childcount (GRL_MEDIA_BOX (media), count);
     }


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