[rygel] tracker: Unknown size means size of 0
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] tracker: Unknown size means size of 0
- Date: Fri, 1 Oct 2010 11:29:06 +0000 (UTC)
commit e3b58952d5e1c1e6bbceda3845fac4bcba2fe6b6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Oct 1 14:26:14 2010 +0300
tracker: Unknown size means size of 0
If item is in tracker store and size is unknown, it most probably means
the size is actually 0 (i-e a place-holder empty item that we created).
.../tracker/rygel-tracker-item-factory.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-item-factory.vala b/src/plugins/tracker/rygel-tracker-item-factory.vala
index f9aa48e..5993ef5 100644
--- a/src/plugins/tracker/rygel-tracker-item-factory.vala
+++ b/src/plugins/tracker/rygel-tracker-item-factory.vala
@@ -85,6 +85,11 @@ public abstract class Rygel.Tracker.ItemFactory {
if (metadata[Metadata.SIZE] != "")
item.size = metadata[Metadata.SIZE].to_int64 ();
+ else
+ // If its in tracker store and size is unknown, it most probably
+ // means the size is 0 (i-e a place-holder empty item that we
+ // created).
+ item.size = 0;
if (metadata[Metadata.DATE] != "")
item.date = metadata[Metadata.DATE];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]