rygel r416 - in trunk/src: plugins/dvb plugins/test rygel



Author: zeeshanak
Date: Wed Jan  7 12:56:12 2009
New Revision: 416
URL: http://svn.gnome.org/viewvc/rygel?rev=416&view=rev

Log:
No need for a separate 'live' boolean in MediaItem.

Check if size of resource is known, instead.

Modified:
   trunk/src/plugins/dvb/rygel-dvb-channel.vala
   trunk/src/plugins/test/rygel-test-item.vala
   trunk/src/rygel/rygel-media-item.vala

Modified: trunk/src/plugins/dvb/rygel-dvb-channel.vala
==============================================================================
--- trunk/src/plugins/dvb/rygel-dvb-channel.vala	(original)
+++ trunk/src/plugins/dvb/rygel-dvb-channel.vala	Wed Jan  7 12:56:12 2009
@@ -48,9 +48,6 @@
               "Unknown",        /* UPnP Class Unknown at this point */
               streamer);
 
-        // This is a live media
-        this.live = true;
-
         this.cid = cid;
         this.channel_list = channel_list;
 

Modified: trunk/src/plugins/test/rygel-test-item.vala
==============================================================================
--- trunk/src/plugins/test/rygel-test-item.vala	(original)
+++ trunk/src/plugins/test/rygel-test-item.vala	Wed Jan  7 12:56:12 2009
@@ -49,9 +49,6 @@
         this.author = TEST_AUTHOR;
         this.path= path;
 
-        // This is a live media
-        this.live = true;
-
         this.res.uri = streamer.create_uri_for_path (path);
 
         streamer.stream_available += this.on_stream_available;

Modified: trunk/src/rygel/rygel-media-item.vala
==============================================================================
--- trunk/src/rygel/rygel-media-item.vala	(original)
+++ trunk/src/rygel/rygel-media-item.vala	Wed Jan  7 12:56:12 2009
@@ -47,8 +47,6 @@
 
     public int track_number = -1;
 
-    public bool live;
-
     protected Rygel.Streamer streamer;
 
     public MediaItem (string   id,
@@ -135,7 +133,7 @@
             this.res.dlna_flags |= GUPnP.DLNAFlags.STREAMING_TRANSFER_MODE;
         }
 
-        if (!this.live) {
+        if (this.res.size < 1) {
             this.res.dlna_operation = GUPnP.DLNAOperation.RANGE;
         }
 



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