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

Commit 191f76bb authored by Ray Chin's avatar Ray Chin
Browse files

Add new DemuxFilterStatus NO_DATA

Bug: 260651195
Test: test on cf_x86_tv-userdebug
Change-Id: I56619579ebf09b49d288254f2d77320cd5575d69
parent a9bffa86
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;
    }