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

Skip to content
Commit c5cd81d6 authored by Praveen Chavan's avatar Praveen Chavan Committed by Gerrit - the friendly Code Review server
Browse files

Stagefright: use get(Input/Output)Buffer in async mode

Non-async mode uses get(Input/Output)Buffers to get the
buffer handles at start; buffer-IDs obtained after
dequeue() are used to directly reference the handles.
In async mode, MediaCodec calls-back when an input/output
is available. Relying on the initial buffer-list can lead
to race conditions when buffers are allocated or changed.
Hence use get(Input/Output)Buffer to query the buffer
handle each time and just-in-time.

CRs-Fixed: 765324
Change-Id: Ifc0b7558564a57bd9316d0f80ae9cf88dfd6a1f3
parent 472edc21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment