mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
androidmedia: Clear exceptions also when we did not provide a GError
This commit is contained in:
parent
aee9d12b86
commit
337bc06de1
1 changed files with 4 additions and 1 deletions
|
@ -495,8 +495,11 @@ gst_amc_set_error_string (JNIEnv * env, GQuark domain, gint code, GError ** err,
|
||||||
{
|
{
|
||||||
jthrowable exception;
|
jthrowable exception;
|
||||||
|
|
||||||
if (!err)
|
if (!err) {
|
||||||
|
if ((*env)->ExceptionCheck (env))
|
||||||
|
(*env)->ExceptionClear (env);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((*env)->ExceptionCheck (env)) {
|
if ((*env)->ExceptionCheck (env)) {
|
||||||
if ((exception = (*env)->ExceptionOccurred (env))) {
|
if ((exception = (*env)->ExceptionOccurred (env))) {
|
||||||
|
|
Loading…
Reference in a new issue