rygel r394 - trunk/src/plugins/dvb



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

Log:
Entertain Streamer.item_requested in DVBChannelGroup.

Modified:
   trunk/src/plugins/dvb/rygel-dvb-channel-group.vala

Modified: trunk/src/plugins/dvb/rygel-dvb-channel-group.vala
==============================================================================
--- trunk/src/plugins/dvb/rygel-dvb-channel-group.vala	(original)
+++ trunk/src/plugins/dvb/rygel-dvb-channel-group.vala	Thu Dec 25 12:02:00 2008
@@ -62,6 +62,8 @@
         this.streamer = streamer;
 
         this.fetch_channels ();
+
+        this.streamer.item_requested += this.on_item_requested;
     }
 
     public uint add_channels (DIDLLiteWriter didl_writer,
@@ -118,5 +120,14 @@
 
         this.child_count = this.channels.size;
     }
+
+    private void on_item_requested (Streamer      streamer,
+                                    string        item_id,
+                                    out MediaItem item) {
+        var channel = this.find_channel (item_id);
+        if (channel != null) {
+            item = channel;
+        }
+    }
 }
 



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