Only Type::FULL can have non-null encoded, so I don't think there's any
point in checking for both things.
auto qi = _queue.front ();
_last_written[qi.reel].update (qi);
_queue.pop_front ();
- if (qi.type == QueueItem::Type::FULL && qi.encoded) {
+ if (qi.encoded) {
--_queued_full_in_memory;
}
/* Find one from the back of the queue */
_queue.sort ();
auto item = _queue.rbegin();
- while (item != _queue.rend() && (item->type != QueueItem::Type::FULL || !item->encoded)) {
+ while (item != _queue.rend() && !item->encoded) {
++item;
}