Ticket #9446: sony.diff

File sony.diff, 1.2 KB (added by tim.brody@…, 8 years ago)

Fix for Sony Blu-Ray players for Recorded TV

  • mythtv/programs/mythbackend/upnpcdstv.cpp

    From 6218e8c3fbc889872c36ac4edc8db97115214194 Mon Sep 17 00:00:00 2001
    From: Tim Brody <tim.brody@googlemail.com>
    Date: Sun, 15 Jan 2012 13:00:39 +0000
    Subject: [PATCH] Set DLNA.ORG_PN=MPEG_TS_SD_NA_ISO for video/mpeg, which
     allows Sony Blu-Ray players to see recordings.
    
    ---
     mythtv/programs/mythbackend/upnpcdstv.cpp |    7 +++++++
     1 files changed, 7 insertions(+), 0 deletions(-)
    
    diff --git a/mythtv/programs/mythbackend/upnpcdstv.cpp b/mythtv/programs/mythbackend/upnpcdstv.cpp
    index f02f9ff..e1ef776 100644
    a b void UPnpCDSTv::AddItem( const UPnpCDSRequest *pRequest, 
    394394    QString sURI      = QString( "%1GetRecording%2").arg( sURIBase   )
    395395                                                    .arg( sURIParams );
    396396
     397    // Sony BDPS370 requires a DLNA Profile Name
     398    // FIXME: detection to determine the correct DLNA Profile Name
     399    if (sMimeType == "video/mpeg")
     400    {
     401        sProtocol += ";DLNA.ORG_PN=MPEG_TS_SD_NA_ISO";
     402    }
     403
    397404    Resource *pRes = pItem->AddResource( sProtocol, sURI );
    398405
    399406    uint uiStart = dtProgStart.toTime_t();