From 4c4406b41757185a0f63a494f7bb03bad3900ac8 Mon Sep 17 00:00:00 2001 From: Silas Della Contrada Date: Wed, 16 Oct 2024 03:13:41 +0200 Subject: [PATCH] fix: string conversion --- native/src/cpp/mpv/MPV.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/cpp/mpv/MPV.cpp b/native/src/cpp/mpv/MPV.cpp index 5799b2c..cfe1f14 100644 --- a/native/src/cpp/mpv/MPV.cpp +++ b/native/src/cpp/mpv/MPV.cpp @@ -83,7 +83,7 @@ jobject eventDataToJava(JNIEnv *env, mpv_event_property *prop) { break; } case MPV_FORMAT_STRING: - value = env->NewStringUTF(static_cast(prop->data)); + value = env->NewStringUTF(*static_cast(prop->data)); break; case MPV_FORMAT_FLAG: { const auto clazz = env->FindClass("java/lang/Boolean");