Make sure not to ask for more buffers when we know that there won't be any, added a quirk for the aac decoder.

This commit is contained in:
Andreas Huber
2009-08-25 14:26:05 -07:00
parent 4804c3e23b
commit 404cc418be
2 changed files with 44 additions and 5 deletions

View File

@ -82,6 +82,7 @@ private:
kWantsNALFragments = 2,
kRequiresLoadedToIdleAfterAllocation = 4,
kRequiresAllocateBufferOnInputPorts = 8,
kRequiresFlushCompleteEmulation = 16,
};
struct BufferInfo {
@ -165,7 +166,13 @@ private:
void drainInputBuffers();
void fillOutputBuffers();
void flushPortAsync(OMX_U32 portIndex);
// Returns true iff a flush was initiated and a completion event is
// upcoming, false otherwise (A flush was not necessary as we own all
// the buffers on that port).
// This method will ONLY ever return false for a component with quirk
// "kRequiresFlushCompleteEmulation".
bool flushPortAsync(OMX_U32 portIndex);
void disablePortAsync(OMX_U32 portIndex);
void enablePortAsync(OMX_U32 portIndex);