[grilo-plugins] tracker: handle differences between direct and bus backends



commit 2ffabd417342154f8dd5be4f5c3cb6146e1ea5ec
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date:   Fri Mar 11 02:01:50 2011 +0000

    tracker: handle differences between direct and bus backends
    
    There are 2 ways to request the tracker database. Either by direct
    access (through WAL feature of SQLite) which is currently buggy or by
    sending requests to the Tracker store daemon. Some slight differences
    are appears between the 2 backends, we try to handle them here.
    
    Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>

 src/media/tracker/grl-tracker-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/media/tracker/grl-tracker-utils.c b/src/media/tracker/grl-tracker-utils.c
index e95db84..9602ea1 100644
--- a/src/media/tracker/grl-tracker-utils.c
+++ b/src/media/tracker/grl-tracker-utils.c
@@ -261,7 +261,7 @@ get_tracker_volume_name (const gchar *uri,
   GList *mounts, *mount;
   GFile *file;
 
-  if (uri != NULL) {
+  if (uri != NULL && *uri != '\0') {
     volume_monitor = g_volume_monitor_get ();
     mounts = g_volume_monitor_get_mounts (volume_monitor);
     file = g_file_new_for_uri (uri);



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