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

Commit 00e53def authored by Ryan Prichard's avatar Ryan Prichard
Browse files

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
parent 03d96f08
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -923,7 +923,7 @@ void Accessor::Impl::evictorThread(
        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;