aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dabplus-enc.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp
index 1b351aa..5b2df47 100644
--- a/src/dabplus-enc.cpp
+++ b/src/dabplus-enc.cpp
@@ -910,9 +910,10 @@ int main(int argc, char *argv[])
}
size_t overruns;
- read_bytes = queue.pop(&input_buf[0], input_buf.size(), &overruns); // returns bytes
+ size_t bytes_from_queue = queue.pop(&input_buf[0], input_buf.size(), &overruns); // returns bytes
+ read_bytes = input_buf.size();
- if (read_bytes != input_buf.size()) {
+ if (bytes_from_queue != input_buf.size()) {
status |= STATUS_UNDERRUN;
}
@@ -949,9 +950,10 @@ int main(int argc, char *argv[])
#endif
size_t overruns;
- read_bytes = queue.pop(&input_buf[0], input_buf.size(), &overruns); // returns bytes
+ size_t bytes_from_queue = queue.pop(&input_buf[0], input_buf.size(), &overruns); // returns bytes
+ read_bytes = input_buf.size();
- if (read_bytes != input_buf.size()) {
+ if (bytes_from_queue != input_buf.size()) {
status |= STATUS_UNDERRUN;
}