diff options
Diffstat (limited to 'src/odr-sourcecompanion.cpp')
-rw-r--r-- | src/odr-sourcecompanion.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/odr-sourcecompanion.cpp b/src/odr-sourcecompanion.cpp index df1d514..2aab20d 100644 --- a/src/odr-sourcecompanion.cpp +++ b/src/odr-sourcecompanion.cpp @@ -457,12 +457,11 @@ int main(int argc, char *argv[]) // Fill the PAD Frame queue because multiple PAD frame requests // can come for each DAB+ Frames (up to 6), if (padlen != 0) { - bool no_data = false; - while (!no_data and !avtinput.padQueueFull()) { + while (!avtinput.padQueueFull()) { vector<uint8_t> pad_data = pad_intf.request(padlen); if (pad_data.empty()) { - /* no PAD available */ + break; } else if (pad_data.size() == (size_t)padlen + 1) { const size_t calculated_padlen = pad_data[padlen]; |