Skip to content

Commit

Permalink
Revert "web app rebuild (MythTV#830)" (MythTV#971)
Browse files Browse the repository at this point in the history
This reverts commit 5902c17.
  • Loading branch information
kmdewaal authored Nov 13, 2024
1 parent 5902c17 commit d5e4984
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mythtv/libs/libmythupnp/upnphelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,10 @@ 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().toLower();
QString sCountryCode = gCoreContext->GetLocale()->GetCountryCode();
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 @@ -147,7 +145,7 @@ QString DLNAProfileName(const QString &mimeType, const QSize resolution,
}
else // Europe standard (DVB)
{
if ((vidCodec == "H264" || isHD) && !isSweden ) // All HD is AVC with DVB except for Sweden
if (vidCodec == "H264" || isHD) // All HD is AVC with DVB
sProfileName = "AVC_TS_EU_ISO";
else // if (videoCodec == "MPEG2VIDEO")
sProfileName = "MPEG_TS_SD_EU_ISO";
Expand Down

0 comments on commit d5e4984

Please sign in to comment.