androidmedia: Clear exceptions also when we did not provide a GError

This commit is contained in:
Sebastian Dröge 2014-06-20 14:59:12 +02:00
parent aee9d12b86
commit 337bc06de1

View file

@ -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))) {