Lines Matching refs:log_ctx

52 JNIEnv *ff_jni_get_env(void *log_ctx)
59 java_vm = av_jni_get_java_vm(log_ctx);
63 av_log(log_ctx, AV_LOG_ERROR, "No Java virtual machine has been registered\n");
77 av_log(log_ctx, AV_LOG_ERROR, "Failed to attach the JNI environment to the current thread\n");
86 av_log(log_ctx, AV_LOG_ERROR, "The specified JNI version is not supported\n");
89 av_log(log_ctx, AV_LOG_ERROR, "Failed to get the JNI environment attached to this thread\n");
98 char *ff_jni_jstring_to_utf_chars(JNIEnv *env, jstring string, void *log_ctx)
112 av_log(log_ctx, AV_LOG_ERROR, "String.getStringUTFChars() threw an exception\n");
121 av_log(log_ctx, AV_LOG_ERROR, "String.releaseStringUTFChars() threw an exception\n");
128 jstring ff_jni_utf_chars_to_jstring(JNIEnv *env, const char *utf_chars, void *log_ctx)
135 av_log(log_ctx, AV_LOG_ERROR, "NewStringUTF() threw an exception\n");
142 int ff_jni_exception_get_summary(JNIEnv *env, jthrowable exception, char **error, void *log_ctx)
164 av_log(log_ctx, AV_LOG_ERROR, "Could not find Throwable class\n");
172 av_log(log_ctx, AV_LOG_ERROR, "Could not find Throwable class's class\n");
180 av_log(log_ctx, AV_LOG_ERROR, "Could not find method Class.getName()\n");
188 av_log(log_ctx, AV_LOG_ERROR, "Class.getName() threw an exception\n");
194 name = ff_jni_jstring_to_utf_chars(env, string, log_ctx);
202 av_log(log_ctx, AV_LOG_ERROR, "Could not find method java/lang/Throwable.getMessage()\n");
210 av_log(log_ctx, AV_LOG_ERROR, "Throwable.getMessage() threw an exception\n");
216 message = ff_jni_jstring_to_utf_chars(env, string, log_ctx);
228 av_log(log_ctx, AV_LOG_WARNING, "Could not retrieve exception name and message\n");
253 int ff_jni_exception_check(JNIEnv *env, int log, void *log_ctx)
273 if ((ret = ff_jni_exception_get_summary(env, exception, &message, log_ctx)) < 0) {
280 av_log(log_ctx, AV_LOG_ERROR, "%s\n", message);
286 int ff_jni_init_jfields(JNIEnv *env, void *jfields, const struct FFJniField *jfields_mapping, int global, void *log_ctx)
301 if ((ret = ff_jni_exception_check(env, mandatory, log_ctx)) < 0 && mandatory) {
322 if ((ret = ff_jni_exception_check(env, mandatory, log_ctx)) < 0 && mandatory) {
331 if ((ret = ff_jni_exception_check(env, mandatory, log_ctx)) < 0 && mandatory) {
340 if ((ret = ff_jni_exception_check(env, mandatory, log_ctx)) < 0 && mandatory) {
349 if ((ret = ff_jni_exception_check(env, mandatory, log_ctx)) < 0 && mandatory) {
357 av_log(log_ctx, AV_LOG_ERROR, "Unknown JNI field type\n");
369 ff_jni_reset_jfields(env, jfields, jfields_mapping, global, log_ctx);
375 int ff_jni_reset_jfields(JNIEnv *env, void *jfields, const struct FFJniField *jfields_mapping, int global, void *log_ctx)
414 av_log(log_ctx, AV_LOG_ERROR, "Unknown JNI field type\n");