rygel r374 - trunk/src/plugins/tracker



Author: zeeshanak
Date: Thu Dec 25 12:00:21 2008
New Revision: 374
URL: http://svn.gnome.org/viewvc/rygel?rev=374&view=rev

Log:
MediaTracker provides the item when requested by Streamer.

Modified:
   trunk/src/plugins/tracker/rygel-media-tracker.vala

Modified: trunk/src/plugins/tracker/rygel-media-tracker.vala
==============================================================================
--- trunk/src/plugins/tracker/rygel-media-tracker.vala	(original)
+++ trunk/src/plugins/tracker/rygel-media-tracker.vala	Thu Dec 25 12:00:21 2008
@@ -46,6 +46,8 @@
 
         this.streamer = new Streamer (this.context, "Tracker");
 
+        this.streamer.item_requested += on_item_requested;
+
         this.containers = new List<TrackerContainer> ();
         this.containers.append
                         (new TrackerContainer ("16",
@@ -180,5 +182,14 @@
 
         return container;
     }
+
+    private void on_item_requested (Streamer      streamer,
+                                    string        item_id,
+                                    out MediaItem item) {
+        TrackerContainer container = get_item_parent (item_id);
+
+        if (container != null)
+            item = container.get_item_from_db (item_id);
+    }
 }
 



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