commit | 9f160cb80799fcde526409048b50d4b8b1ef7ad6 | [log] [tgz] |
---|---|---|
author | Ryan Prichard <rprichard@google.com> | Thu Jun 27 22:33:21 2024 -0700 |
committer | Ryan Prichard <rprichard@google.com> | Fri Jun 28 00:52:38 2024 -0700 |
tree | ed84d57cd831c065b56ed70a56b6b32b5257edf0 | |
parent | f28b8e809cd8ae3410c519aa8b84dd3480807916 [diff] |
libstagefright_aidl_bufferpool2: 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_aidl_bufferpool2 Change-Id: I6491377d6275c5d18cd91b40184d6f05cff7cb9a
diff --git a/media/bufferpool/aidl/default/Accessor.cpp b/media/bufferpool/aidl/default/Accessor.cpp index 423fd84..81e8eac 100644 --- a/media/bufferpool/aidl/default/Accessor.cpp +++ b/media/bufferpool/aidl/default/Accessor.cpp
@@ -444,7 +444,7 @@ std::map<const std::weak_ptr<Accessor>, nsecs_t, std::owner_less<>> &accessors, std::mutex &mutex, std::condition_variable &cv) { - std::list<const std::weak_ptr<Accessor>> evictList; + std::list<std::weak_ptr<Accessor>> evictList; while (true) { int expired = 0; int evicted = 0;