diff --git a/recipes-bc/linphone-sdk/linphone-sdk/linphone-sdk.bb b/recipes-bc/linphone-sdk/linphone-sdk/linphone-sdk.bb index 80eb63c..e05cfb8 100644 --- a/recipes-bc/linphone-sdk/linphone-sdk/linphone-sdk.bb +++ b/recipes-bc/linphone-sdk/linphone-sdk/linphone-sdk.bb @@ -16,7 +16,8 @@ python () { print(d.getVar('SRCREV', True)) } -SRC_URI = "gitsm://gitlab.linphone.org/BC/public/linphone-sdk.git;protocol=https;branch=release/5.0;" +SRC_URI = "gitsm://gitlab.linphone.org/BC/public/linphone-sdk.git;protocol=https;branch=release/5.0;" +SRC_URI += "file://call-stats.patch" PV = "git_${SRCREV}" PKGV = "${GITPKGVTAG}" diff --git a/recipes-bc/linphone-sdk/linphone-sdk/linphone-sdk/call-stats.patch b/recipes-bc/linphone-sdk/linphone-sdk/linphone-sdk/call-stats.patch new file mode 100644 index 0000000..078acbf --- /dev/null +++ b/recipes-bc/linphone-sdk/linphone-sdk/linphone-sdk/call-stats.patch @@ -0,0 +1,20 @@ +--- linphone-sdk/liblinphone/daemon/commands/call-stats.cc 2021-10-10 19:26:55.499286281 +0200 ++++ linphone-sdk/liblinphone/daemon/commands/call-stats.cc.new 2021-10-10 19:26:51.799270213 +0200 +@@ -73,7 +73,15 @@ + } + + ostringstream ostr; +- ostr << CallStatsEvent(app, call, linphone_call_get_audio_stats(call)).getBody(); +- ostr << CallStatsEvent(app, call, linphone_call_get_video_stats(call)).getBody(); ++ ++ LinphoneCallStats* stats = nullptr; ++ stats = linphone_call_get_audio_stats(call); ++ if (nullptr != stats) { ++ ostr << CallStatsEvent(app, call, stats).getBody(); ++ } ++ stats = linphone_call_get_video_stats(call); ++ if (nullptr != stats) { ++ ostr << CallStatsEvent(app, call, stats).getBody(); ++ } + app->sendResponse(Response(ostr.str(), Response::Ok)); + }