Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
linphone-desktop
Commits
860f0cd2
Commit
860f0cd2
authored
5 months ago
by
Julien Wadel
Browse files
Options
Download
Patches
Plain Diff
Fix codecs display in stats call
parent
2c9092ee
master
build/windows_runner_ok
feature/AEC3
feature/dp
feature/loading_spinner
feature/oidc_client_secret
feature/redirect_uri
feature/test_integ_sdk
feature/translation
fix/LINQT-1362
fix/LINQT-1482
fix/SLS-8
fix/all
fix/auth_popup
fix/conference_index_as_objects
fix/config_login_page
fix/contact_list
fix/contact_speed
fix/disable_chat_feature
fix/jira_conseil_dep
fix/login_page_back_button
fix/qt6.8compil
fix/quit_conf_screensharing
fix/set_operator
fix/slow_ldap_loading
fix/ui
fix/ui_fixes
1 merge request
!1056
Fix codecs display in stats call
Pipeline
#83689
passed with stages
in 13 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Linphone/core/call/CallCore.cpp
+6
-8
Linphone/core/call/CallCore.cpp
with
6 additions
and
8 deletions
Linphone/core/call/CallCore.cpp
+
6
−
8
View file @
860f0cd2
...
...
@@ -399,7 +399,7 @@ void CallCore::setSelf(QSharedPointer<CallCore> me) {
[
this
](
const
std
::
shared_ptr
<
linphone
::
Call
>
&
call
,
const
std
::
shared_ptr
<
const
linphone
::
CallStats
>
&
stats
)
{
if
(
stats
->
getType
()
==
linphone
::
StreamType
::
Audio
)
{
AudioStats
audioStats
;
auto
playloadType
=
call
->
getParams
()
->
getUsedAudioPayloadType
();
auto
playloadType
=
call
->
get
Current
Params
()
->
getUsedAudioPayloadType
();
auto
codecType
=
playloadType
?
playloadType
->
getMimeType
()
:
""
;
auto
codecRate
=
playloadType
?
playloadType
->
getClockRate
()
/
1000
:
0
;
audioStats
.
codec
=
tr
(
"Codec: %1 / %2 kHz"
).
arg
(
Utils
::
coreStringToAppString
(
codecType
)).
arg
(
codecRate
);
...
...
@@ -413,8 +413,8 @@ void CallCore::setSelf(QSharedPointer<CallCore> me) {
setAudioStats
(
audioStats
);
}
else
if
(
stats
->
getType
()
==
linphone
::
StreamType
::
Video
)
{
VideoStats
videoStats
;
auto
params
=
call
->
getParams
();
auto
playloadType
=
params
->
getUsed
Audi
oPayloadType
();
auto
params
=
call
->
get
Current
Params
();
auto
playloadType
=
params
->
getUsed
Vide
oPayloadType
();
auto
codecType
=
playloadType
?
playloadType
->
getMimeType
()
:
""
;
auto
codecRate
=
playloadType
?
playloadType
->
getClockRate
()
/
1000
:
0
;
videoStats
.
codec
=
tr
(
"Codec: %1 / %2 kHz"
).
arg
(
Utils
::
coreStringToAppString
(
codecType
)).
arg
(
codecRate
);
...
...
@@ -430,10 +430,8 @@ void CallCore::setSelf(QSharedPointer<CallCore> me) {
auto
receivedResolution
=
params
->
getReceivedVideoDefinition
()
?
params
->
getReceivedVideoDefinition
()
->
getName
()
:
""
;
videoStats
.
resolution
=
tr
(
"Définition vidéo : %1 %2 %3 %4"
)
.
arg
(
"↑"
)
.
arg
(
Utils
::
coreStringToAppString
(
sentResolution
))
.
arg
(
"↓"
)
.
arg
(
Utils
::
coreStringToAppString
(
receivedResolution
));
.
arg
(
"↑"
,
Utils
::
coreStringToAppString
(
sentResolution
),
"↓"
,
Utils
::
coreStringToAppString
(
receivedResolution
));
auto
sentFps
=
params
->
getSentFramerate
();
auto
receivedFps
=
params
->
getReceivedFramerate
();
videoStats
.
fps
=
tr
(
"FPS : %1 %2 %3 %4"
).
arg
(
"↑"
).
arg
(
sentFps
).
arg
(
"↓"
).
arg
(
receivedFps
);
...
...
@@ -788,4 +786,4 @@ void CallCore::setVideoStats(VideoStats stats) {
mVideoStats
=
stats
;
emit
videoStatsChanged
();
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets