Permalink
Browse files

Fix UPnP for Sony BluRay players

Set DLNA.ORG_PN=MPEG_TS_SD_NA_ISO for video/mpeg, which allows Sony Blu-Ray
players to see recordings.

This doesn't seem to be likely to break other UPnP clients, but as usual, 
our UPnP Mediaserver support is kinda like black magic not having the DLNA
spec, and is based primarily on user trial and error and observations.

Fixes #9446

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
  • Loading branch information...
1 parent 638192e commit 20f2c45cbf71c35891ca241c7ba8e06aadf07532 @timbrody timbrody committed with Beirdo Jan 15, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 mythtv/programs/mythbackend/upnpcdstv.cpp
@@ -405,6 +405,13 @@ void UPnpCDSTv::AddItem( const UPnpCDSRequest *pRequest,
QString sURI = QString( "%1GetRecording%2").arg( sURIBase )
.arg( sURIParams );
+ // Sony BDPS370 requires a DLNA Profile Name
+ // FIXME: detection to determine the correct DLNA Profile Name
+ if (sMimeType == "video/mpeg")
+ {
+ sProtocol += ";DLNA.ORG_PN=MPEG_TS_SD_NA_ISO";
+ }
+
Resource *pRes = pItem->AddResource( sProtocol, sURI );
uint uiStart = dtProgStart.toTime_t();

0 comments on commit 20f2c45

Please sign in to comment.