On Mon, Feb 22, 2016 at 12:20:36PM +0100, Matthieu Bouron wrote: > From: Matthieu Bouron <matthieu.bou...@stupeflix.com> [...] > + codec = (*env)->NewObject(env, jfields.mediacodec_list_class, > jfields.init_id, 0); > + if (!codec) { > + av_log(NULL, AV_LOG_ERROR, "Could not create media codec > list\n"); > + goto done; > + } > + > + tmp = (*env)->CallObjectMethod(env, codec, > jfields.find_decoder_for_format_id, format); > + if (!tmp) { > + av_log(NULL, AV_LOG_ERROR, "Could not find decoder in media > codec list\n"); > + goto done; > + } > + > + name = ff_jni_jstring_to_utf_chars(env, tmp, NULL); > + if (!name) {
> + av_log(NULL, AV_LOG_ERROR, "Could not convert jstring to utf > chars\n"); some non NULL context would be better, if possible, so the user knows where an error came from [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB During times of universal deceit, telling the truth becomes a revolutionary act. -- George Orwell
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel