Commit 2ce9d4ec authored by Simon Morlat's avatar Simon Morlat
Browse files

fix bug in stats update JNI upcall, since introduction of text stream

parent f5a8a0c8
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment