[grilo] net: use different function to check cache



commit 6ab0239a4ba4fabc7506c71104c555c14913b06a
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Thu May 16 18:08:33 2013 +0000

    net: use different function to check cache
    
    In order to avoid bumping up the libsoup version required, do a slightly change
    in function that checks if cache is available.

 libs/net/grl-net-soup-unstable.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libs/net/grl-net-soup-unstable.c b/libs/net/grl-net-soup-unstable.c
index 07ae5fb..8c8fb89 100644
--- a/libs/net/grl-net-soup-unstable.c
+++ b/libs/net/grl-net-soup-unstable.c
@@ -131,7 +131,7 @@ cache_up (GrlNetWc *self)
 gboolean
 cache_is_available (GrlNetWc *self)
 {
-  return soup_session_has_feature (self->priv->session, SOUP_TYPE_CACHE);
+  return soup_session_get_feature (self->priv->session, SOUP_TYPE_CACHE) != NULL;
 }
 
 void


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