Return correct audio codecs string when getting of audio codecs fails

This commit is contained in:
Juha Heinanen
2026-05-21 07:49:16 +03:00
parent 764f16c170
commit 41859c8d1f

View File

@ -1467,7 +1467,7 @@ JNIEXPORT jstring JNICALL Java_com_tutpro_baresip_Api_call_1audio_1codecs(
rx->srate, rx->ch);
else {
LOGE("failed to get audio codecs of call %ld\n", (long)call);
len = re_snprintf(start, left, "%s/%u/%u,%s/%u/%u", '?', 0, 0, '?', 0, 0);
len = re_snprintf(start, left, "%s/%u/%u,%s/%u/%u", "?", 0, 0, "?", 0, 0);
}
return (*env)->NewStringUTF(env, codec_buf);
}