Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaEncoder drainOutput IllegalStateException #1266

Open
EzequielAdrianM opened this issue Jan 7, 2024 · 0 comments
Open

MediaEncoder drainOutput IllegalStateException #1266

EzequielAdrianM opened this issue Jan 7, 2024 · 0 comments

Comments

@EzequielAdrianM
Copy link
Contributor

Fatal Exception: java.lang.IllegalStateException:
       at android.media.MediaCodec.releaseOutputBuffer(MediaCodec.java)
       at android.media.MediaCodec.releaseOutputBufferInternal(MediaCodec.java:3651)
       at android.media.MediaCodec.releaseOutputBuffer(MediaCodec.java:3572)
       at com.otaliastudios.cameraview.video.encoding.MediaEncoder.drainOutput(MediaEncoder.java:474)
       at com.otaliastudios.cameraview.video.encoding.AudioMediaEncoder$AudioEncodingThread.encode(AudioMediaEncoder.java:428)
       at com.otaliastudios.cameraview.video.encoding.AudioMediaEncoder$AudioEncodingThread.run(AudioMediaEncoder.java:391)

Can we just try/catch and let the code continue or it should throw a proper exception?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant