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

Commit 45e5c43b authored by Thomas Wendt's avatar Thomas Wendt Committed by Steve Kondik
Browse files

stagefright: Add legacy MediaBuffer::acquireBuffer symbol

Needed by endeavoru libwvm.so.

Change-Id: I8c324f6b0f99d0ea360e875739a2bd564a815cbe
parent 57ac004c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -55,6 +55,13 @@ void MediaBufferGroup::add_buffer(MediaBuffer *buffer) {
    mLastBuffer = buffer;
}

#ifdef ADD_LEGACY_ACQUIRE_BUFFER_SYMBOL
extern "C" status_t _ZN7android16MediaBufferGroup14acquire_bufferEPPNS_11MediaBufferE(
    MediaBufferGroup* group, MediaBuffer **out) {
    return group->acquire_buffer(out, false);
}
#endif

status_t MediaBufferGroup::acquire_buffer(
        MediaBuffer **out, bool nonBlocking) {
    Mutex::Autolock autoLock(mLock);