[tracker] tracker-miner-fs: Don't try to send thumbs if service is disabled
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-miner-fs: Don't try to send thumbs if service is disabled
- Date: Tue, 29 Sep 2009 14:48:27 +0000 (UTC)
commit c8bbc7065611f03c3555d8e482a590f50ce37946
Author: Martyn Russell <martyn lanedo com>
Date: Tue Sep 29 15:43:10 2009 +0100
tracker-miner-fs: Don't try to send thumbs if service is disabled
src/tracker-miner-fs/tracker-thumbnailer.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/src/tracker-miner-fs/tracker-thumbnailer.c b/src/tracker-miner-fs/tracker-thumbnailer.c
index 674c0f5..67c9efd 100644
--- a/src/tracker-miner-fs/tracker-thumbnailer.c
+++ b/src/tracker-miner-fs/tracker-thumbnailer.c
@@ -196,10 +196,6 @@ tracker_thumbnailer_move (const gchar *from_uri,
private = g_static_private_get (&private_key);
g_return_val_if_fail (private != NULL, FALSE);
- /* NOTE: We don't check the service_is_enabled flag here
- * because we might want to manage thumbnails even if we are
- * not creating any new ones.
- */
if (!private->service_is_available) {
return FALSE;
}
@@ -254,10 +250,6 @@ tracker_thumbnailer_remove (const gchar *uri,
private = g_static_private_get (&private_key);
g_return_val_if_fail (private != NULL, FALSE);
- /* NOTE: We don't check the service_is_enabled flag here
- * because we might want to manage thumbnails even if we are
- * not creating any new ones.
- */
if (!private->service_is_available) {
return FALSE;
}
@@ -299,10 +291,6 @@ tracker_thumbnailer_cleanup (const gchar *uri_prefix)
private = g_static_private_get (&private_key);
g_return_val_if_fail (private != NULL, FALSE);
- /* NOTE: We don't check the service_is_enabled flag here
- * because we might want to manage thumbnails even if we are
- * not creating any new ones.
- */
if (!private->service_is_available) {
return FALSE;
}
@@ -378,6 +366,10 @@ tracker_thumbnailer_queue_send (void)
private = g_static_private_get (&private_key);
g_return_if_fail (private != NULL);
+ if (!private->service_is_available) {
+ return;
+ }
+
if (g_slist_length (private->uris) < 1) {
/* Nothing to do */
g_message ("Thumbnailer queue is empty, nothing to send to thumbnailer");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]