Commit 43f9516d authored by Jens Georg's avatar Jens Georg
Browse files

server: Return proper contentFeatures for DIDL_S

https://bugzilla.gnome.org/show_bug.cgi?id=709627
parent f458c7c9
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment