mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
zapit/src/capmt.cpp: reduce debug
Origin commit data
------------------
Branch: ni/coolstream
Commit: ff129578e6
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-09-17 (Mon, 17 Sep 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: cam.cpp,v 1.33 2004/04/04 20:20:45 obi Exp $
|
|
||||||
*
|
|
||||||
* (C) 2002 by Andreas Oberritter <obi@tuxbox.org>,
|
* (C) 2002 by Andreas Oberritter <obi@tuxbox.org>,
|
||||||
* thegoodguy <thegoodguy@berlios.de>
|
* thegoodguy <thegoodguy@berlios.de>
|
||||||
*
|
*
|
||||||
|
* Copyright (C) 2011-2012 CoolStream International Ltd
|
||||||
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
@@ -81,7 +81,7 @@ bool CCam::makeCaPmt(CZapitChannel * channel, uint8_t list, const CaIdVector &ca
|
|||||||
int len;
|
int len;
|
||||||
unsigned char * buffer = channel->getRawPmt(len);
|
unsigned char * buffer = channel->getRawPmt(len);
|
||||||
|
|
||||||
INFO("cam %x source %d camask %d list %02x buffer", (int) this, source_demux, camask, list);
|
DBG("cam %x source %d camask %d list %02x buffer", (int) this, source_demux, camask, list);
|
||||||
|
|
||||||
if(!buffer)
|
if(!buffer)
|
||||||
return false;
|
return false;
|
||||||
@@ -149,7 +149,7 @@ int CCam::makeMask(int demux, bool add)
|
|||||||
if(demuxes[i] > 0)
|
if(demuxes[i] > 0)
|
||||||
mask |= 1 << i;
|
mask |= 1 << i;
|
||||||
}
|
}
|
||||||
INFO("demuxes %d:%d:%d old mask %d new mask %d", demuxes[0], demuxes[1], demuxes[2], camask, mask);
|
DBG("demuxes %d:%d:%d old mask %d new mask %d", demuxes[0], demuxes[1], demuxes[2], camask, mask);
|
||||||
return mask;
|
return mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,7 +188,7 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
|
|||||||
printf("CCamManager: channel %llx not found\n", channel_id);
|
printf("CCamManager: channel %llx not found\n", channel_id);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
INFO("channel %llx [%s] mode %d %s update %d", channel_id, channel->getName().c_str(), mode, start ? "START" : "STOP", force_update);
|
//INFO("channel %llx [%s] mode %d %s update %d", channel_id, channel->getName().c_str(), mode, start ? "START" : "STOP", force_update);
|
||||||
mutex.lock();
|
mutex.lock();
|
||||||
|
|
||||||
cammap_iterator_t it = channel_map.find(channel_id);
|
cammap_iterator_t it = channel_map.find(channel_id);
|
||||||
@@ -226,11 +226,10 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
|
|||||||
if(cam->getSource() > 0)
|
if(cam->getSource() > 0)
|
||||||
source = cam->getSource();
|
source = cam->getSource();
|
||||||
|
|
||||||
INFO("source %d old mask %d new mask %d force update %s", source, oldmask, newmask, force_update ? "yes" : "no");
|
INFO("channel %llx [%s] mode %d %s src %d mask %d -> %d update %d", channel_id, channel->getName().c_str(),
|
||||||
|
mode, start ? "START" : "STOP", source, oldmask, newmask, force_update);
|
||||||
|
//INFO("source %d old mask %d new mask %d force update %s", source, oldmask, newmask, force_update ? "yes" : "no");
|
||||||
if((oldmask != newmask) || force_update) {
|
if((oldmask != newmask) || force_update) {
|
||||||
#if 0
|
|
||||||
cam->setCaPmt(channel, source, newmask, true);
|
|
||||||
#endif
|
|
||||||
cam->setCaMask(newmask);
|
cam->setCaMask(newmask);
|
||||||
cam->setSource(source);
|
cam->setSource(source);
|
||||||
if(newmask == 0) {
|
if(newmask == 0) {
|
||||||
|
Reference in New Issue
Block a user