mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 04:58:14 +00:00
fix bug in stats update JNI upcall, since introduction of text stream
This commit is contained in:
parent
f5a8a0c803
commit
2ce9d4ecc0
1 changed files with 4 additions and 1 deletions
|
|
@ -944,8 +944,11 @@ public:
|
|||
callobj = getCall(env, call);
|
||||
if (stats->type == LINPHONE_CALL_STATS_AUDIO)
|
||||
env->CallVoidMethod(callobj, ljb->callSetAudioStatsId, statsobj);
|
||||
else
|
||||
else if (stats->type == LINPHONE_CALL_STATS_VIDEO){
|
||||
env->CallVoidMethod(callobj, ljb->callSetVideoStatsId, statsobj);
|
||||
}else{
|
||||
//text stats not updated yet.
|
||||
}
|
||||
env->CallVoidMethod(lcData->listener, ljb->callStatsUpdatedId, lcData->core, callobj, statsobj);
|
||||
handle_possible_java_exception(env, lcData->listener);
|
||||
if (statsobj) env->DeleteLocalRef(statsobj);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue