From: Jens Georg Date: Tue, 8 Oct 2013 11:13:04 +0000 (+0200) Subject: server: Return proper contentFeatures for DIDL_S X-Git-Tag: RYGEL_0_21_0~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43f9516d5080a586cddcb61e34d1b217234578fb;p=profile%2Fivi%2Frygel.git server: Return proper contentFeatures for DIDL_S https://bugzilla.gnome.org/show_bug.cgi?id=709627 --- diff --git a/src/librygel-server/rygel-http-playlist-handler.vala b/src/librygel-server/rygel-http-playlist-handler.vala index e2a4e39..6a8d5aa 100644 --- a/src/librygel-server/rygel-http-playlist-handler.vala +++ b/src/librygel-server/rygel-http-playlist-handler.vala @@ -165,7 +165,14 @@ internal class Rygel.HTTPPlaylistHandler : Rygel.HTTPGetHandler { var protocol = request.http_server.get_protocol (); try { - return request.object.add_resource (didl_object, null, protocol); + var res = request.object.add_resource (didl_object, null, protocol); + + // set DLNA profile to get proper contentFeatures header + if (this.playlist_type == SerializerType.DIDL_S) { + res.protocol_info.dlna_profile = "DIDL_S"; + } + + return res; } catch (Error error) { return null as DIDLLiteResource; }