mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
driver/streamts.cpp: use record demux, deny streaming if pip running
Origin commit data
------------------
Commit: 698b56c6db
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-03-25 (Mon, 25 Mar 2013)
This commit is contained in:
@@ -162,8 +162,14 @@ void CStreamInstance::run()
|
||||
{
|
||||
printf("CStreamInstance::run: %llx\n", channel_id);
|
||||
|
||||
#if 0
|
||||
dmx = new cDemux(STREAM_DEMUX);//FIXME
|
||||
#endif
|
||||
CZapitChannel * tmpchan = CServiceManager::getInstance()->FindChannel(channel_id);
|
||||
if (!tmpchan)
|
||||
return;
|
||||
|
||||
dmx = new cDemux(tmpchan->getRecordDemux());//FIXME
|
||||
dmx->Open(DMX_TP_CHANNEL, NULL, DMX_BUFFER_SIZE);
|
||||
|
||||
/* pids here cannot be empty */
|
||||
@@ -350,6 +356,13 @@ bool CStreamManager::Parse(int fd, stream_pids_t &pids, t_channel_id &chid)
|
||||
printf("CStreamManager::Parse: channel %llx recorded, aborting..\n", chid);
|
||||
return false;
|
||||
}
|
||||
#ifdef ENABLE_PIP
|
||||
t_channel_id pip_channel_id = CZapit::getInstance()->GetPipChannelID();
|
||||
if ((chid == pip_channel_id) && (channel->getRecordDemux() == channel->getPipDemux())) {
|
||||
printf("CStreamManager::Parse: channel %llx used for pip, aborting..\n", chid);
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
printf("CStreamManager::Parse: no pids in url, using channel %llx pids\n", chid);
|
||||
|
Reference in New Issue
Block a user