diff --git a/src/driver/streamts.cpp b/src/driver/streamts.cpp index bfbb5c576..31459da81 100644 --- a/src/driver/streamts.cpp +++ b/src/driver/streamts.cpp @@ -346,8 +346,8 @@ bool CStreamManager::Parse(int fd, stream_pids_t &pids, t_channel_id &chid) } } } - if(CRecordManager::getInstance()->RecordingStatus(tmpid)) { - printf("CStreamManager::Parse: channel %llx recorded, aborting..\n", tmpid); + if(CRecordManager::getInstance()->RecordingStatus(chid)) { + printf("CStreamManager::Parse: channel %llx recorded, aborting..\n", chid); return false; } #endif