mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
AddPids(fd, channel, pids);
|
AddPids(fd, channel, pids, send_raw);
|
||||||
|
|
||||||
return !pids.empty();
|
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()) {
|
if (pids.empty()) {
|
||||||
printf("CStreamManager::AddPids: searching channel %" PRIx64 " pids\n", channel->getChannelID());
|
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);
|
pids.insert(channel->getAudioChannel(i)->pid);
|
||||||
printf("CStreamManager::AddPids: apid 0x%04x \n", 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)
|
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 Listen();
|
||||||
bool Parse(int fd, stream_pids_t &pids, t_channel_id &chid, CFrontend * &frontend, bool &send_raw);
|
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);
|
void CheckStandby(bool enter);
|
||||||
CFrontend * FindFrontend(CZapitChannel * channel);
|
CFrontend * FindFrontend(CZapitChannel * channel);
|
||||||
bool StopAll();
|
bool StopAll();
|
||||||
|
Reference in New Issue
Block a user