mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Check EOS is not signalled when queueing bitmap and texture
This is consistent with Surface input PiperOrigin-RevId: 650298944
This commit is contained in:
parent
972007abef
commit
ecd8a33f01
1 changed files with 2 additions and 0 deletions
|
|
@ -532,6 +532,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
|
|||
|
||||
@Override
|
||||
public boolean queueInputBitmap(Bitmap inputBitmap, TimestampIterator timestampIterator) {
|
||||
checkState(!inputStreamEnded);
|
||||
if (!inputStreamRegisteredCondition.isOpen()) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -554,6 +555,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
|
|||
|
||||
@Override
|
||||
public boolean queueInputTexture(int textureId, long presentationTimeUs) {
|
||||
checkState(!inputStreamEnded);
|
||||
if (!inputStreamRegisteredCondition.isOpen()) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue