fix aac audio when streaming, thx DboxOldie

Origin commit data
------------------
Branch: ni/coolstream
Commit: da944aa9bf
Author: max_10 <max_10@gmx.de>
Date: 2019-05-03 (Fri, 03 May 2019)

Origin message was:
------------------
- fix aac audio when streaming, thx DboxOldie

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

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2019-05-03 21:39:42 +02:00
committed by vanhofen
parent 99a0bb2d95
commit a55b0dd9cf
2 changed files with 8 additions and 0 deletions

View File

@@ -472,6 +472,10 @@ void CStreamManager::AddPids(int fd, CZapitChannel *channel, stream_pids_t &pids
printf("CStreamManager::AddPids: genpsi apid %x (%d)\n", *it, atype);
if (channel->getAudioChannel(i)->audioChannelType == CZapitAudioChannel::EAC3) {
psi.addPid(*it, EN_TYPE_AUDIO_EAC3, atype, channel->getAudioChannel(i)->description.c_str());
} else if (channel->getAudioChannel(i)->audioChannelType == CZapitAudioChannel::AAC) {
psi.addPid(*it, EN_TYPE_AUDIO_AAC, atype, channel->getAudioChannel(i)->description.c_str());
} else if (channel->getAudioChannel(i)->audioChannelType == CZapitAudioChannel::AACPLUS) {
psi.addPid(*it, EN_TYPE_AUDIO_AACP, atype, channel->getAudioChannel(i)->description.c_str());
} else {
psi.addPid(*it, EN_TYPE_AUDIO, atype, channel->getAudioChannel(i)->description.c_str());
}