diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-06-08 11:35:07 +0200 |
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-06-08 11:35:07 +0200 |
| commit | 830c43f4b462fb2f8d995dd0cdc8fd32282d023e (patch) | |
| tree | 8242f4e887c1bd8005fa4c12b9c96034a99f3052 /src/odr-sourcecompanion.cpp | |
| parent | 5269fec9106327db4ada313701ceae67d833e736 (diff) | |
| download | ODR-SourceCompanion-830c43f4b462fb2f8d995dd0cdc8fd32282d023e.tar.gz ODR-SourceCompanion-830c43f4b462fb2f8d995dd0cdc8fd32282d023e.tar.bz2 ODR-SourceCompanion-830c43f4b462fb2f8d995dd0cdc8fd32282d023e.zip | |
Do not block on missing PAD data
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]; |
