core: Indicate support for connection stalling
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 11 Jan 2010 17:16:26 +0000 (19:16 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 12 Jan 2010 14:23:24 +0000 (16:23 +0200)
We support connection stalling for byte-seekable resources, so we should
indicate that.

src/rygel/rygel-media-item.vala
src/rygel/rygel-thumbnail.vala

index 2c960e4..77284eb 100644 (file)
@@ -198,7 +198,8 @@ public class Rygel.MediaItem : MediaObject {
 
         if (!this.should_stream ()) {
             protocol_info.dlna_operation = DLNAOperation.RANGE;
-            protocol_info.dlna_flags |= DLNAFlags.BACKGROUND_TRANSFER_MODE;
+            protocol_info.dlna_flags |= DLNAFlags.BACKGROUND_TRANSFER_MODE |
+                                        DLNAFlags.CONNECTION_STALL;
         }
 
         return protocol_info;
index 1112b8c..985a784 100644 (file)
@@ -59,7 +59,8 @@ public class Rygel.Thumbnail : Rygel.IconInfo {
         protocol_info.dlna_profile = this.dlna_profile;
         protocol_info.protocol = protocol;
         protocol_info.dlna_flags |= DLNAFlags.INTERACTIVE_TRANSFER_MODE |
-                                    DLNAFlags.BACKGROUND_TRANSFER_MODE;
+                                    DLNAFlags.BACKGROUND_TRANSFER_MODE |
+                                    DLNAFlags.CONNECTION_STALL;
 
         return protocol_info;
     }