Bug 1322628 - record EOS buffer in CodecProxy to make sure it'll be released before ICodec.stop() is called. r=snorp

MozReview-Commit-ID: J9ISYhZqAqk

--HG--
extra : rebase_source : 2fb3c8b871079a3b4b004dd84a99711a7481f865
This commit is contained in:
John Lin 2016-12-09 11:42:22 +08:00
Родитель cccfe60bef
Коммит bbc583e1aa
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -72,9 +72,7 @@ public final class CodecProxy {
public void onOutput(Sample sample) throws RemoteException {
if (mOutputSurface != null) {
// Don't render to surface just yet. Callback will make that happen when it's time.
if (!sample.isEOS() || sample.info.size > 0) {
mSurfaceOutputs.offer(sample);
}
mSurfaceOutputs.offer(sample);
mCallbacks.onOutput(sample);
} else {
// Non-surface output needs no rendering.