-
Notifications
You must be signed in to change notification settings - Fork 212
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
i meet some exception #59
Comments
in MediaCodec,i find below: |
IllegalStateException if codec is configured in asynchronous mode??in VideoEncoderCore you say “This class is not thread-safe, with one exception: it is valid to use the input surface on one thread, and drain the output on a different thread.” |
It's really nice if you can help check it. |
java.lang.IllegalStateException
at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:1036)
at com.gouhuoapp.camerarecord.video.AndroidEncoder$override.drainEncoder(AndroidEncoder.java:86)
at com.gouhuoapp.camerarecord.video.AndroidEncoder$override.access$dispatch(AndroidEncoder.java)
at com.gouhuoapp.camerarecord.video.AndroidEncoder.drainEncoder(AndroidEncoder.java:0)
at com.gouhuoapp.camerarecord.video.CameraEncoder.handleFrameAvailable(CameraEncoder.java:497)
at com.gouhuoapp.camerarecord.video.CameraEncoder.access$100(CameraEncoder.java:28)
at com.gouhuoapp.camerarecord.video.CameraEncoder$EncoderHandler.handleMessage(CameraEncoder.java:913)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at com.gouhuoapp.camerarecord.video.CameraEncoder.run(CameraEncoder.java:676)
at java.lang.Thread.run(Thread.java:818)
The text was updated successfully, but these errors were encountered: