commit | 00e53def6f32c9ed6f79dd2aa99ec61a45077740 | [log] [tgz] |
---|---|---|
author | Ryan Prichard <rprichard@google.com> | Thu Jun 27 22:36:02 2024 -0700 |
committer | Ryan Prichard <rprichard@google.com> | Fri Jun 28 00:52:38 2024 -0700 |
tree | 3db140bc465c5759e5ed8ec61b770e7b9322daa8 | |
parent | 03d96f08b9ff85f827b59fad3756c2b36540ba77 [diff] |
libstagefright_bufferpool: avoid list<const T> A container of const T uses std::allocator<const T>, which was an undocumented libc++ extension that has been removed. See https://github.com/llvm/llvm-project/pull/96319. Bug: 349681543 Test: m libstagefright_bufferpool@2.0.1 Change-Id: If562374c45fa5a48b1cf45007b6264937014dea5
diff --git a/media/module/bufferpool/2.0/AccessorImpl.cpp b/media/module/bufferpool/2.0/AccessorImpl.cpp index b9483bf..3d7f0c7 100644 --- a/media/module/bufferpool/2.0/AccessorImpl.cpp +++ b/media/module/bufferpool/2.0/AccessorImpl.cpp
@@ -923,7 +923,7 @@ std::map<const std::weak_ptr<Accessor::Impl>, nsecs_t, std::owner_less<>> &accessors, std::mutex &mutex, std::condition_variable &cv) { - std::list<const std::weak_ptr<Accessor::Impl>> evictList; + std::list<std::weak_ptr<Accessor::Impl>> evictList; while (true) { int expired = 0; int evicted = 0;