[rygel] core: Fix transfer mode for thumbnails



commit 0f7a5d443c18c69b14ffa15d6891028b8babff15
Author: Topi Santakivi <topi santakivi digia com>
Date:   Tue May 17 16:57:05 2011 +0300

    core: Fix transfer mode for thumbnails
    
    Commit 487816a made Rygel compliant with DLNA guideline 7.4.49.4 but
    broke the thumbnails. This commit loosens the restrictions to make
    thumbnails work again.

 src/rygel/rygel-http-get.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/rygel/rygel-http-get.vala b/src/rygel/rygel-http-get.vala
index 47e2de5..0ea407c 100644
--- a/src/rygel/rygel-http-get.vala
+++ b/src/rygel/rygel-http-get.vala
@@ -193,11 +193,11 @@ internal class Rygel.HTTPGet : HTTPRequest {
 
             break;
         case "Interactive":
-            correct =  this.handler is HTTPIdentityHandler &&
-                       (!this.item.is_live_stream () ||
-                        this.subtitle != null ||
-                        this.thumbnail != null) &&
-                       !this.item.streamable ();
+            correct = this.handler is HTTPIdentityHandler &&
+                      ((!this.item.is_live_stream () &&
+                       !this.item.streamable ()) ||
+                       (this.subtitle != null ||
+                        this.thumbnail != null));
 
             break;
         }



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