[rygel] media-export: No need for safeguard
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: No need for safeguard
- Date: Sat, 14 Aug 2010 23:31:40 +0000 (UTC)
commit 2911ffd29a5dd5e5a70e3bb3432ac68df0013586
Author: Jens Georg <mail jensge org>
Date: Fri Jul 30 10:54:54 2010 +0200
media-export: No need for safeguard
.../rygel-media-export-harvesting-task.vala | 5 +----
.../rygel-media-export-root-container.vala | 5 +----
2 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-harvesting-task.vala b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
index ff26e78..c3567ee 100644
--- a/src/plugins/media-export/rygel-media-export-harvesting-task.vala
+++ b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
@@ -174,10 +174,7 @@ public class Rygel.MediaExport.HarvestingTask : Rygel.StateMachine, GLib.Object
var container = new DummyContainer (file, parent);
this.containers.push_tail (container);
try {
- int64 timestamp;
- if (!this.cache.exists (container.id, out timestamp)) {
- this.cache.save_container (container);
- }
+ this.cache.save_container (container);
} catch (Error err) {
warning (_("Failed to update database: %s"), err.message);
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala b/src/plugins/media-export/rygel-media-export-root-container.vala
index af40bd6..c0e074f 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -274,10 +274,7 @@ public class Rygel.MediaExport.RootContainer : Rygel.MediaExport.DBContainer {
}
try {
- int64 timestamp;
- if (!this.media_db.exists ("0", out timestamp)) {
- media_db.save_container (this);
- }
+ this.media_db.save_container (this);
} catch (Error error) { } // do nothing
ArrayList<string> ids;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]