supplemental to 4071ffd3deb55898de680a8cfd8ac1085a41a4f7

Origin commit data
------------------
Branch: ni/coolstream
Commit: b298789767
Author: TangoCash <eric@loxat.de>
Date: 2021-01-31 (Sun, 31 Jan 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2021-01-31 18:21:43 +01:00
committed by vanhofen
parent dc37127c29
commit 298ebe126e
4 changed files with 46 additions and 4 deletions

View File

@@ -526,10 +526,24 @@ void CRemoteControl::processAPIDnames()
if(g_settings.audio_DolbyDigital && (ac3_found < 0))
ac3_found = count;
}
else if ( current_PIDs.APIDs[count].is_eac3 )
{
if(!strstr(current_PIDs.APIDs[count].desc, " (EAC3)"))
tmp_desc += " (EAC3)";
has_ac3 = true;
if(g_settings.audio_DolbyDigital && (ac3_found < 0))
ac3_found = count;
}
else if (current_PIDs.APIDs[count].is_aac && !strstr(current_PIDs.APIDs[count].desc, " (AAC)"))
tmp_desc += " (AAC)";
else if (current_PIDs.APIDs[count].is_eac3 && !strstr(current_PIDs.APIDs[count].desc, " (EAC3)"))
tmp_desc += " (EAC3)";
else if (current_PIDs.APIDs[count].is_aache && !strstr(current_PIDs.APIDs[count].desc, " (AACP)"))
tmp_desc += " (AACP)";
else if (current_PIDs.APIDs[count].is_dts && !strstr(current_PIDs.APIDs[count].desc, " (DTS)"))
tmp_desc += " (DTS)";
else if (current_PIDs.APIDs[count].is_dtshd && !strstr(current_PIDs.APIDs[count].desc, " (DTSHD)"))
tmp_desc += " (DTSHD)";
else if (current_PIDs.APIDs[count].is_lpcm && !strstr(current_PIDs.APIDs[count].desc, " (LPCM)"))
tmp_desc += " (LPCM)";
if(!tmp_desc.empty()){
strncpy(current_PIDs.APIDs[count].desc, tmp_desc.c_str(), DESC_MAX_LEN -1);