[grilo-plugins] tmdb: Fix possible assertion at run-time



commit 22adabb41ef4b28cc010783520540a7111b75a55
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Mar 14 21:30:38 2014 +0100

    tmdb: Fix possible assertion at run-time
    
    When making a single request, we would very likely assert making the
    request because the address of the list pointer wasn't a valid
    GrlTmdbRequestDetail value.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726372

 src/tmdb/grl-tmdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tmdb/grl-tmdb.c b/src/tmdb/grl-tmdb.c
index 593de42..f0e709d 100644
--- a/src/tmdb/grl-tmdb.c
+++ b/src/tmdb/grl-tmdb.c
@@ -1127,7 +1127,7 @@ static void resolve_slow_details (ResolveClosure *closure)
     return;
 
   if (g_list_length (details) == 1) {
-    queue_detail_request (closure, GPOINTER_TO_UINT (details));
+    queue_detail_request (closure, GPOINTER_TO_UINT (details->data));
     return;
   }
 


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