[rygel] core: Add restrictions to correct transfer modes



commit 487816a99daa84729d8516cff6662c0024349fb2
Author: Topi Santakivi <topi santakivi digia com>
Date:   Tue May 3 14:06:58 2011 +0300

    core: Add restrictions to correct transfer modes
    
    This patch makes the transfer mode check conform
    with DLNA guideline 7.4.49.4.

 src/rygel/rygel-http-get.vala |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-http-get.vala b/src/rygel/rygel-http-get.vala
index 49e4978..9b26c1b 100644
--- a/src/rygel/rygel-http-get.vala
+++ b/src/rygel/rygel-http-get.vala
@@ -156,14 +156,17 @@ internal class Rygel.HTTPGet : HTTPRequest {
             correct = this.handler is HTTPTranscodeHandler ||
                       (this.item.streamable () &&
                        this.subtitle == null &&
-                       this.thumbnail == null);
+                       this.thumbnail == null &&
+                       !(this.item is ImageItem));
 
             break;
         case "Interactive":
             correct =  this.handler is HTTPIdentityHandler &&
                        (!this.item.is_live_stream () ||
                         this.subtitle != null ||
-                        this.thumbnail != null);
+                        this.thumbnail != null) &&
+                       (!(this.item is MusicItem) &&
+                        !(this.item is VideoItem));
 
             break;
         }



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