send ecm pids in stream only in raw mode

This commit is contained in:
TangoCash
2022-09-09 22:43:15 +02:00
committed by Thilo Graf
parent 29731b1d2f
commit 108ebe8301
2 changed files with 4 additions and 4 deletions

View File

@@ -492,12 +492,12 @@ bool CStreamManager::Parse(int fd, stream_pids_t &pids, t_channel_id &chid, CFro
return false;
}
AddPids(fd, channel, pids);
AddPids(fd, channel, pids, send_raw);
return !pids.empty();
}
void CStreamManager::AddPids(int fd, CZapitChannel *channel, stream_pids_t &pids)
void CStreamManager::AddPids(int fd, CZapitChannel *channel, stream_pids_t &pids, bool send_raw)
{
if (pids.empty()) {
printf("CStreamManager::AddPids: searching channel %" PRIx64 " pids\n", channel->getChannelID());
@@ -511,7 +511,7 @@ void CStreamManager::AddPids(int fd, CZapitChannel *channel, stream_pids_t &pids
pids.insert(channel->getAudioChannel(i)->pid);
printf("CStreamManager::AddPids: apid 0x%04x \n", channel->getAudioChannel(i)->pid);
}
if (!channel->capids.empty())
if (!channel->capids.empty() && send_raw)
{
for(casys_pids_iterator_t it = channel->capids.begin(); it != channel->capids.end(); ++it)
{

View File

@@ -122,7 +122,7 @@ class CStreamManager : public OpenThreads::Thread
bool Listen();
bool Parse(int fd, stream_pids_t &pids, t_channel_id &chid, CFrontend * &frontend, bool &send_raw);
void AddPids(int fd, CZapitChannel * channel, stream_pids_t &pids);
void AddPids(int fd, CZapitChannel * channel, stream_pids_t &pids, bool send_raw);
void CheckStandby(bool enter);
CFrontend * FindFrontend(CZapitChannel * channel);
bool StopAll();