diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-08-27 08:30:20 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-08-27 08:30:20 +0200 |
commit | 70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f (patch) | |
tree | a21fb353a0b5bcdd89ae249feaf82c4715249cc3 /src/DabMultiplexer.cpp | |
parent | 22df1554f5b6dabfd9c8bb18a0107c36a3cf2aac (diff) | |
download | dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.tar.gz dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.tar.bz2 dabmux-70e72e84212f5b6b15f2e1a2b2d95d1d67abac7f.zip |
Make InputBase::open() return void
Diffstat (limited to 'src/DabMultiplexer.cpp')
-rw-r--r-- | src/DabMultiplexer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/DabMultiplexer.cpp b/src/DabMultiplexer.cpp index 0d68ac2..498e9e0 100644 --- a/src/DabMultiplexer.cpp +++ b/src/DabMultiplexer.cpp @@ -308,10 +308,8 @@ void DabMultiplexer::prepare_data_inputs() (*subchannel)->startAddress = (*(subchannel - 1))->startAddress + (*(subchannel - 1))->getSizeCu(); } - if ((*subchannel)->input->open((*subchannel)->inputUri) == -1) { - perror((*subchannel)->inputUri.c_str()); - throw MuxInitException(); - } + + (*subchannel)->input->open((*subchannel)->inputUri); // TODO Check errors int subch_bitrate = (*subchannel)->input->setBitrate( (*subchannel)->bitrate); |