Skip to content

Commit

Permalink
web app rebuild (#830)
Browse files Browse the repository at this point in the history
* Update upnphelpers.cpp

* Modified profilename for Swedish DVBT MPEG_TS_SD_EU_ISO
  • Loading branch information
mholmqvist authored Nov 12, 2024
1 parent ceefef0 commit 5902c17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mythtv/libs/libmythupnp/upnphelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,12 @@ QString DLNAProfileName(const QString &mimeType, const QSize resolution,
// HACK This is just temporary until we start storing more video
// information in the database for each file and can determine this
// stuff 'properly'
QString sCountryCode = gCoreContext->GetLocale()->GetCountryCode();
QString sCountryCode = gCoreContext->GetLocale()->GetCountryCode().toLower();
bool isNorthAmerica = (sCountryCode == "us" || sCountryCode == "ca" ||
sCountryCode == "mx"); // North America (NTSC/ATSC)

bool isSweden = (sCountryCode == "se"); //Sweden dvb svt1/2 use MPEG_TS_SD_EU_ISO also for HD

if (container == "MPEG2-PS")
{
if (isHD && audioCodec == "DTS")
Expand Down Expand Up @@ -145,7 +147,7 @@ QString DLNAProfileName(const QString &mimeType, const QSize resolution,
}
else // Europe standard (DVB)
{
if (vidCodec == "H264" || isHD) // All HD is AVC with DVB
if ((vidCodec == "H264" || isHD) && !isSweden ) // All HD is AVC with DVB except for Sweden
sProfileName = "AVC_TS_EU_ISO";
else // if (videoCodec == "MPEG2VIDEO")
sProfileName = "MPEG_TS_SD_EU_ISO";
Expand Down

0 comments on commit 5902c17

Please sign in to comment.