Skip to content

Commit 20f2c45

Browse files
timbrodyBeirdo
authored andcommitted
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>
1 parent 638192e commit 20f2c45

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mythtv/programs/mythbackend/upnpcdstv.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,13 @@ void UPnpCDSTv::AddItem( const UPnpCDSRequest *pRequest,
405405
QString sURI = QString( "%1GetRecording%2").arg( sURIBase )
406406
.arg( sURIParams );
407407

408+
// Sony BDPS370 requires a DLNA Profile Name
409+
// FIXME: detection to determine the correct DLNA Profile Name
410+
if (sMimeType == "video/mpeg")
411+
{
412+
sProtocol += ";DLNA.ORG_PN=MPEG_TS_SD_NA_ISO";
413+
}
414+
408415
Resource *pRes = pItem->AddResource( sProtocol, sURI );
409416

410417
uint uiStart = dtProgStart.toTime_t();

0 commit comments

Comments
 (0)