[rygel] media-export: Remove useless parameter



commit 32cffd25a56149c7de7456c55885fd1cef81becb
Author: Jens Georg <mail jensge org>
Date:   Thu Jul 29 17:58:55 2010 +0200

    media-export: Remove useless parameter

 .../rygel-media-export-harvesting-task.vala        |    9 +++------
 1 files changed, 3 insertions(+), 6 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 b790224..6db7796 100644
--- a/src/plugins/media-export/rygel-media-export-harvesting-task.vala
+++ b/src/plugins/media-export/rygel-media-export-harvesting-task.vala
@@ -108,9 +108,8 @@ public class Rygel.MediaExport.HarvestingTask : Rygel.StateMachine, GLib.Object
     }
 
     private bool push_if_changed_or_unknown (File       file,
-                                             FileInfo   info,
-                                             out string id) {
-        id = Checksum.compute_for_string (ChecksumType.MD5, file.get_uri ());
+                                             FileInfo   info) {
+        var id = Item.get_id (file);
         int64 timestamp;
         try {
             if (this.cache.exists (id, out timestamp)) {
@@ -167,15 +166,13 @@ public class Rygel.MediaExport.HarvestingTask : Rygel.StateMachine, GLib.Object
 
             return true;
         } else {
-            string id;
-
             // Let's see if the file is wanted
             if (file_filter != null &&
                 !file_filter.match (file.get_uri ())) {
                 return false;
             }
 
-             return push_if_changed_or_unknown (file, info, out id);
+             return push_if_changed_or_unknown (file, info);
         }
     }
 



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