[rygel] core: Image items are not streamable



commit c0b24e6505d18acdd41fff53b98a0042ad6da15e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Aug 19 15:55:39 2010 +0300

    core: Image items are not streamable

 src/rygel/rygel-media-item.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-media-item.vala b/src/rygel/rygel-media-item.vala
index 0892432..e1431ac 100644
--- a/src/rygel/rygel-media-item.vala
+++ b/src/rygel/rygel-media-item.vala
@@ -112,8 +112,8 @@ public class Rygel.MediaItem : MediaObject {
     // time based seeking, or false to serve directly with byte range
     // seeking.
     public virtual bool should_stream () {
-        // Simple heuristic: if we know the size, serve directly.
-        return this.size <= 0;
+        // Simple heuristic: if size is known and its not image, serve directly.
+        return !this.upnp_class.has_prefix (IMAGE_CLASS) && this.size <= 0;
     }
 
     // Adds URI to MediaItem. You can either provide the associated thumbnail or



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