Skip to content

Commit

Permalink
fix: string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
silenium-dev committed Oct 16, 2024
1 parent 3013f46 commit 4c4406b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/src/cpp/mpv/MPV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobject eventDataToJava(JNIEnv *env, mpv_event_property *prop) {
break;
}
case MPV_FORMAT_STRING:
value = env->NewStringUTF(static_cast<char *>(prop->data));
value = env->NewStringUTF(*static_cast<char **>(prop->data));
break;
case MPV_FORMAT_FLAG: {
const auto clazz = env->FindClass("java/lang/Boolean");
Expand Down

0 comments on commit 4c4406b

Please sign in to comment.