зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cccfe60bef
Коммит
bbc583e1aa
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче