core: Image items are not streamable
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Thu, 19 Aug 2010 12:55:39 +0000 (15:55 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Thu, 19 Aug 2010 12:55:39 +0000 (15:55 +0300)
src/rygel/rygel-media-item.vala

index 0892432..e1431ac 100644 (file)
@@ -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