mediacodec: try to return an output frame if we failed to get an available input...
authorFelix Abecassis <felix.abecassis@gmail.com>
Mon, 4 Nov 2013 15:17:47 +0000 (16:17 +0100)
committerMartin Storsjö <martin@martin.st>
Mon, 4 Nov 2013 19:56:40 +0000 (21:56 +0200)
commit10ef73dcf1208f9eebe48c8faee1aac0df6734d7
treefa912297c9959c7de418bc2b6b8adc89677bc0f2
parent2a5ae45619e12107e5d59d874733e10cdccbed18
mediacodec: try to return an output frame if we failed to get an available input buffer.

Previously we would only return one frame even if multiple output
frames were available, dropping all but the last one, while waiting
for a free input buffer. Instead return the first output buffer
and don't consume the input buffer at all in that case.

Signed-off-by: Martin Storsjö <martin@martin.st>
modules/codec/omxil/android_mediacodec.c