-
Notifications
You must be signed in to change notification settings - Fork 36
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
Proper exception handling needed #7
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there 👋
We are currently facing an issue with your library that we get an
IllegalStateException
when calling theVideoSlimmer.releaseCoder()
method.We found out that this comes up when an encoder was already released when calling stop. See here https://developer.android.com/reference/android/media/MediaCodec?hl=en#stop()
We would suggest to wrap the
releaseCoder()
method in an exception handling block and catching RuntimeExceptions ( see #8).VideoSlimmer/videoslimmer/src/main/java/com/zolad/videoslimmer/VideoSlimEncoder.java
Lines 605 to 627 in d98917e
The text was updated successfully, but these errors were encountered: