Skip to content

Commit

Permalink
Fix UPnP for Sony BluRay players
Browse files Browse the repository at this point in the history
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
timbrody authored and Beirdo committed Mar 5, 2012
1 parent 638192e commit 20f2c45
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mythtv/programs/mythbackend/upnpcdstv.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 20f2c45

Please sign in to comment.