src/zapit/src/capmt.cpp fix possible segfault

This commit is contained in:
Jacek Jendrzej
2018-03-29 13:07:07 +02:00
parent e73eac0bb6
commit 840dae319a

View File

@@ -259,7 +259,8 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
case RECORD:
#if HAVE_SPARK_HARDWARE || HAVE_ARM_HARDWARE
INFO("RECORD/STREAM(%d): fe_num %d rec_dmx %d", mode, frontend ? frontend->getNumber() : -1, channel->getRecordDemux());
source = frontend->getNumber();
if(frontend)
source = frontend->getNumber();
demux = source;
#else
source = channel->getRecordDemux();