aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-20 11:36:26 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-20 11:36:26 +0100
commit01c0f656cafd657abc4c9d538101cf1170619951 (patch)
tree12eed10bb5cbc144ad7378242bfe6ce6183f5751
parent1bbbac7f62d71f0d0c4c71d429aeb2cfdf96e5ac (diff)
downloaddabmod-01c0f656cafd657abc4c9d538101cf1170619951.tar.gz
dabmod-01c0f656cafd657abc4c9d538101cf1170619951.tar.bz2
dabmod-01c0f656cafd657abc4c9d538101cf1170619951.zip
TII is acutally a ModInput, not a ModCodec
-rw-r--r--src/TII.cpp12
-rw-r--r--src/TII.h4
2 files changed, 6 insertions, 10 deletions
diff --git a/src/TII.cpp b/src/TII.cpp
index 15e5b4a..15543d0 100644
--- a/src/TII.cpp
+++ b/src/TII.cpp
@@ -107,7 +107,7 @@ const int pattern_tm1_2_4[][8] = { // {{{
{1,1,1,1,0,0,0,0} }; // }}}
TII::TII(unsigned int dabmode, tii_config_t& tii_config) :
- ModCodec(),
+ ModInput(),
RemoteControllable("tii"),
m_dabmode(dabmode),
m_conf(tii_config),
@@ -176,14 +176,10 @@ const char* TII::name()
}
-int TII::process(Buffer* const dataIn, Buffer* dataOut)
+int TII::process(Buffer* dataOut)
{
- PDEBUG("TII::process(dataIn: %p, dataOut: %p)\n",
- dataIn, dataOut);
-
- if ((dataIn != NULL) && (dataIn->getLength() != 0)) {
- throw TIIError("TII::process input size not valid!");
- }
+ PDEBUG("TII::process(dataOut: %p)\n",
+ dataOut);
if (m_conf.enable and m_insert) {
boost::mutex::scoped_lock lock(m_dataIn_mutex);
diff --git a/src/TII.h b/src/TII.h
index b088147..d491c43 100644
--- a/src/TII.h
+++ b/src/TII.h
@@ -58,13 +58,13 @@ class TIIError : public std::runtime_error {
std::runtime_error(msg) {}
};
-class TII : public ModCodec, public RemoteControllable
+class TII : public ModInput, public RemoteControllable
{
public:
TII(unsigned int dabmode, tii_config_t& tii_config);
virtual ~TII();
- int process(Buffer* const dataIn, Buffer* dataOut);
+ int process(Buffer* dataOut);
const char* name();
/******* REMOTE CONTROL ********/