[rygel] tracker: Minor refactoring



commit 9484ce93622aaade75bb44a405b4eb6048302d5c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Sep 18 16:21:39 2009 +0300

    tracker: Minor refactoring

 .../tracker/rygel-tracker-search-container.vala    |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala
index 2896c29..42a9506 100644
--- a/src/plugins/tracker/rygel-tracker-search-container.vala
+++ b/src/plugins/tracker/rygel-tracker-search-container.vala
@@ -209,18 +209,20 @@ public abstract class Rygel.TrackerSearchContainer : Rygel.MediaContainer {
     public MediaItem? create_item (string   service,
                                    string   path,
                                    string[] metadata) {
+        var id = this.id + ":" + path;
+
         if (service == TrackerVideoItem.SERVICE) {
-            return new TrackerVideoItem (this.id + ":" + path,
+            return new TrackerVideoItem (id,
                                          path,
                                          this,
                                          metadata);
         } else if (service == TrackerImageItem.SERVICE) {
-            return new TrackerImageItem (this.id + ":" + path,
+            return new TrackerImageItem (id,
                                          path,
                                          this,
                                          metadata);
         } else if (service == TrackerMusicItem.SERVICE) {
-            return new TrackerMusicItem (this.id + ":" + path,
+            return new TrackerMusicItem (id,
                                          path,
                                          this,
                                          metadata);



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