Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecb39a02 authored by Hongguang Chen's avatar Hongguang Chen Committed by Android (Google) Code Review
Browse files

Merge "Add new DemuxFilterStatus NO_DATA"

parents db98cb3d 191f76bb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -39,4 +39,5 @@ enum DemuxFilterStatus {
  LOW_WATER = 2,
  HIGH_WATER = 4,
  OVERFLOW = 8,
  NO_DATA = 16,
}
+5 −0
Original line number Diff line number Diff line
@@ -46,4 +46,9 @@ enum DemuxFilterStatus {
     * discarded.
     */
    OVERFLOW = 1 << 3,

    /**
     * Indicating there is no data coming to the filter.
     */
    NO_DATA = 1 << 4,
}
+2 −0
Original line number Diff line number Diff line
@@ -691,6 +691,8 @@ DemuxFilterStatus Filter::checkFilterStatusChange(uint32_t availableToWrite,
        return DemuxFilterStatus::OVERFLOW;
    } else if (availableToRead > highThreshold) {
        return DemuxFilterStatus::HIGH_WATER;
    } else if (availableToRead == 0) {
        return DemuxFilterStatus::NO_DATA;
    } else if (availableToRead < lowThreshold) {
        return DemuxFilterStatus::LOW_WATER;
    }