mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
capmt: avoid crash with simulated FE debug message
Origin commit data
------------------
Commit: 086434c99f
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-12-25 (Thu, 25 Dec 2014)
This commit is contained in:
@@ -229,6 +229,12 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
|
||||
//INFO("channel %llx [%s] mode %d %s update %d", channel_id, channel->getName().c_str(), mode, start ? "START" : "STOP", force_update);
|
||||
|
||||
/* FIXME until proper demux management */
|
||||
#if ! HAVE_COOL_HARDWARE
|
||||
CFrontend *dfe = CFEManager::getInstance()->allocateFE(channel);
|
||||
int fenum = -1;
|
||||
if (dfe)
|
||||
fenum = dfe->getNumber();
|
||||
#endif
|
||||
switch(mode) {
|
||||
case PLAY:
|
||||
#if HAVE_COOL_HARDWARE
|
||||
@@ -237,7 +243,7 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
|
||||
#else
|
||||
source = cDemux::GetSource(0);
|
||||
demux = cDemux::GetSource(0);
|
||||
INFO("PLAY: fe_num %d dmx_src %d", CFEManager::getInstance()->allocateFE(channel)->getNumber(), cDemux::GetSource(0));
|
||||
INFO("PLAY: fe_num %d dmx_src %d", fenum, cDemux::GetSource(0));
|
||||
#endif
|
||||
break;
|
||||
case STREAM:
|
||||
@@ -248,7 +254,7 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
|
||||
#else
|
||||
source = cDemux::GetSource(channel->getRecordDemux());
|
||||
demux = source;
|
||||
INFO("RECORD/STREAM(%d): fe_num %d rec_dmx %d dmx_src %d", mode, CFEManager::getInstance()->allocateFE(channel)->getNumber(), channel->getRecordDemux(), demux);
|
||||
INFO("RECORD/STREAM(%d): fe_num %d rec_dmx %d dmx_src %d", mode, fenum, channel->getRecordDemux(), demux);
|
||||
#endif
|
||||
break;
|
||||
case PIP:
|
||||
|
Reference in New Issue
Block a user