Ticket #12767: mythtv-dlna-fixes.patch

File mythtv-dlna-fixes.patch, 2.7 KB (added by davidm <dfilterspam@…>, 4 years ago)

possible fixes

  • mythtv/libs/libmythupnp/upnpcds.cpp

     
    10701070    // For metadata requests the request ID will be the ID of the result, so
    10711071    // we don't need to do anything
    10721072    if (currentName == name.toLower() && !currentValue.isEmpty() &&
    1073         currentValue == value.toLower())
     1073        currentValue.toLower() == value.toLower())
    10741074        return requestId;
    10751075    else if (currentName == name.toLower() && currentValue.isEmpty())
    10761076        return QString("%1=%2").arg(requestId).arg(value);
  • mythtv/libs/libmythupnp/upnphelpers.cpp

     
    120120    // information in the database for each file and can determine this
    121121    // stuff 'properly'
    122122    QString sCountryCode = gCoreContext->GetLocale()->GetCountryCode();
    123     bool isNorthAmerica = (sCountryCode == "us" || sCountryCode == "ca" ||
     123    bool isNorthAmerica = (sCountryCode.toLower() == "us" || sCountryCode == "ca" ||
    124124                            sCountryCode == "mx"); // North America (NTSC/ATSC)
    125125
    126126    if (container == "MPEG2-PS")
     
    199199    }
    200200    else if (mimeType == "audio/mpeg")
    201201    {
    202         sProfileName = "MP3X";
     202        sProfileName = "MP3";
    203203    }
    204204    else if (mimeType == "audio/x-ms-wma")
    205205    {
  • mythtv/programs/mythbackend/devicemaster.xml

     
    1818        <dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMS-1.51</dlna:X_DLNADOC>
    1919        <dlna:X_DLNACAP xmlns:dlna="urn:schemas-dlna-org:device-1-0"></dlna:X_DLNACAP>
    2020        <!-- uncomment to override defaults <serialNumber>MYTHTV-UPNP-01</serialNumber> -->
    21         <deviceList>
    22             <device>
    23             <!-- UDN auto generated -->
    24             <friendlyName>MythTV Master Media Server</friendlyName>
    25             <deviceType>urn:schemas-mythtv-org:device:MasterMediaServer:1</deviceType>
    26             <manufacturer>MythTV</manufacturer>
    27             <manufacturerURL>http://www.mythtv.org/</manufacturerURL>
    28             <modelName>MythTV Master Media Server</modelName>
    29             <!-- uncomment to override defaults <modelNumber>0.20</modelNumber> -->
    30             <modelDescription>MythTV AV Media Server</modelDescription>
    31             <modelURL>http://www.mythtv.org/</modelURL>
    32             <presentationURL>/</presentationURL>
    33             <!-- uncomment to override defaults <serialNumber>MYTHTV-UPNP-01</serialNumber> -->
    34             </device>
    35         </deviceList>
    3621    </device>
    3722</root>