mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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
|
@Override
|
||||||
public boolean queueInputBitmap(Bitmap inputBitmap, TimestampIterator timestampIterator) {
|
public boolean queueInputBitmap(Bitmap inputBitmap, TimestampIterator timestampIterator) {
|
||||||
|
checkState(!inputStreamEnded);
|
||||||
if (!inputStreamRegisteredCondition.isOpen()) {
|
if (!inputStreamRegisteredCondition.isOpen()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -554,6 +555,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean queueInputTexture(int textureId, long presentationTimeUs) {
|
public boolean queueInputTexture(int textureId, long presentationTimeUs) {
|
||||||
|
checkState(!inputStreamEnded);
|
||||||
if (!inputStreamRegisteredCondition.isOpen()) {
|
if (!inputStreamRegisteredCondition.isOpen()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue