[gupnp-dlna/wip/new-api] to_g_value returns "FALSE" on error



commit adef44127d2273289286d79b42d7b5d038edc6ef
Author: Jens Georg <mail jensge org>
Date:   Mon Jan 14 15:20:37 2013 +0100

    to_g_value returns "FALSE" on error

 libgupnp-dlna/gupnp-dlna-value.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgupnp-dlna/gupnp-dlna-value.c b/libgupnp-dlna/gupnp-dlna-value.c
index ade3554..13c3c65 100644
--- a/libgupnp-dlna/gupnp-dlna-value.c
+++ b/libgupnp-dlna/gupnp-dlna-value.c
@@ -435,7 +435,7 @@ gupnp_dlna_value_to_g_value (GUPnPDLNAValue     *base,
 
         g_value = g_new0 (GValue, 1);
 
-        if (base->vtable->to_g_value (base, type, g_value)) {
+        if (!base->vtable->to_g_value (base, type, g_value)) {
                 g_free (g_value);
                 g_value = NULL;
         }



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