mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
send ecm pids in stream only in raw mode
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user