From 79cef9860617e6b721f546b323d23f2881a5726e Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 25 Jan 2014 20:27:46 +0100 Subject: [PATCH] capmt: try to fix recording/streaming Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/039dcc8d4db6291ac15e697af5442ab5ea4fabed Author: Stefan Seyfried Date: 2014-01-25 (Sat, 25 Jan 2014) --- src/zapit/src/capmt.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/zapit/src/capmt.cpp b/src/zapit/src/capmt.cpp index eb3f759df..d01cc4469 100644 --- a/src/zapit/src/capmt.cpp +++ b/src/zapit/src/capmt.cpp @@ -3,7 +3,7 @@ * thegoodguy * * Copyright (C) 2011-2012 CoolStream International Ltd - * Copyright (C) 2012,2013 Stefan Seyfried + * Copyright (C) 2012-2014 Stefan Seyfried * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -225,9 +225,14 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start break; case STREAM: case RECORD: - INFO("RECORD/STREAM(%d): fe_num %d rec_dmx %d", mode, CFEManager::getInstance()->allocateFE(channel)->getNumber(), channel->getRecordDemux()); +#if HAVE_COOL_HARDWARE source = channel->getRecordDemux(); demux = channel->getRecordDemux(); +#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); +#endif break; #if 0 case STREAM: