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

Commit 05a81339 authored by Jiwen 'Steve' Cai's avatar Jiwen 'Steve' Cai Committed by android-build-merger
Browse files

Merge "Fix ALOGE_IF log in bufferhubqueue" into oc-dr1-dev

am: c3e0cdb2

Change-Id: I5ed228cd0f98a6324b799b506377df750238e549
parents 11c7026e c3e0cdb2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -488,7 +488,7 @@ Status<std::vector<size_t>> ProducerQueue::AllocateBuffers(


  if (buffer_slots.size() == 0) {
  if (buffer_slots.size() == 0) {
    // Error out if no buffer is allocated and improted.
    // Error out if no buffer is allocated and improted.
    ALOGE(TRACE, "ProducerQueue::AllocateBuffers: no buffer allocated.");
    ALOGE_IF(TRACE, "ProducerQueue::AllocateBuffers: no buffer allocated.");
    ErrorStatus(ENOMEM);
    ErrorStatus(ENOMEM);
  }
  }


@@ -509,7 +509,7 @@ Status<size_t> ProducerQueue::AllocateBuffer(uint32_t width, uint32_t height,
  }
  }


  if (status.get().size() == 0) {
  if (status.get().size() == 0) {
    ALOGE(TRACE, "ProducerQueue::AllocateBuffer: no buffer allocated.");
    ALOGE_IF(TRACE, "ProducerQueue::AllocateBuffer: no buffer allocated.");
    ErrorStatus(ENOMEM);
    ErrorStatus(ENOMEM);
  }
  }