From: Zeeshan Ali (Khattak) Date: Thu, 19 Aug 2010 12:55:39 +0000 (+0300) Subject: core: Image items are not streamable X-Git-Tag: RYGEL_0_7_7~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0b24e6505d18acdd41fff53b98a0042ad6da15e;p=profile%2Fivi%2Frygel.git core: Image items are not streamable --- 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