Skip to content

Commit

Permalink
send ecm pids in stream only in raw mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TangoCash committed Sep 9, 2022
1 parent 98f829e commit 4c71bd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/driver/streamts.cpp
Expand Up @@ -490,12 +490,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());
Expand All @@ -509,7 +509,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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/driver/streamts.h
Expand Up @@ -121,7 +121,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();
Expand Down

0 comments on commit 4c71bd2

Please sign in to comment.