TAndroidLame icon indicating copy to clipboard operation
TAndroidLame copied to clipboard

ID3 tag only saves first char

Open gcdias opened this issue 6 years ago • 0 comments

id3 tags only writes first char of string. I'm compiling with AS 3.1.3 NDK 17.1.* JRE 1.8.0.*

Changing jchar to char in AndroidLame.c makes it work

eg. for title:

const jchar *title = NULL; ... title = (*env)->GetStringChars(env, id3tagTitle, NULL); ... id3tag_set_title(glf, (const char *) title); (*env)->ReleaseStringChars(env, id3tagTitle, title); ...

to

const char *title = NULL; ... title = (*env)->GetStringUTFChars(env, id3tagTitle, NULL); ... id3tag_set_title(glf, title); (*env)->ReleaseStringUTFChars(env, id3tagTitle, title); ...

gcdias avatar Jul 22 '18 00:07 gcdias