Pass JVM to ffmpeg (#8985)
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
parent
ae16b8975b
commit
2fd53f9825
@ -349,6 +349,10 @@ fn init_ndk_context() -> JniResult<()> {
|
||||
jvm.get_java_vm_pointer() as _,
|
||||
ctx.as_obj().as_raw() as _,
|
||||
);
|
||||
#[cfg(feature = "hwcodec")]
|
||||
hwcodec::android::ffmpeg_set_java_vm(
|
||||
jvm.get_java_vm_pointer() as _,
|
||||
);
|
||||
}
|
||||
*lock = true;
|
||||
return Ok(());
|
||||
|
Loading…
x
Reference in New Issue
Block a user