Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
4b8dd867
Commit
4b8dd867
authored
Jul 12, 2017
by
Ghislain MARY
Browse files
Remove now useless payload type usability check with opus and webrtc echo canceller.
parent
0cb13b88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
coreapi/payload_type.c
coreapi/payload_type.c
+1
-13
No files found.
coreapi/payload_type.c
View file @
4b8dd867
...
...
@@ -260,19 +260,7 @@ bool_t linphone_payload_type_is_vbr(const LinphonePayloadType *pt) {
bool_t
_linphone_core_check_payload_type_usability
(
const
LinphoneCore
*
lc
,
const
OrtpPayloadType
*
pt
)
{
int
maxbw
=
get_min_bandwidth
(
linphone_core_get_download_bandwidth
(
lc
),
linphone_core_get_upload_bandwidth
(
lc
));
bool_t
ret
=
linphone_core_is_payload_type_usable_for_bandwidth
(
lc
,
pt
,
maxbw
);
if
((
pt
->
type
==
PAYLOAD_AUDIO_CONTINUOUS
||
pt
->
type
==
PAYLOAD_AUDIO_PACKETIZED
)
&&
lc
->
sound_conf
.
capt_sndcard
&&
!
(
ms_snd_card_get_capabilities
(
lc
->
sound_conf
.
capt_sndcard
)
&
MS_SND_CARD_CAP_BUILTIN_ECHO_CANCELLER
)
&&
linphone_core_echo_cancellation_enabled
(
lc
)
&&
(
pt
->
clock_rate
!=
16000
&&
pt
->
clock_rate
!=
8000
)
&&
strcasecmp
(
pt
->
mime_type
,
"opus"
)
!=
0
&&
ms_factory_lookup_filter_by_name
(
lc
->
factory
,
"MSWebRTCAEC"
)
!=
NULL
){
ms_warning
(
"Payload type %s/%i cannot be used because software echo cancellation is required but is unable to operate at this rate."
,
pt
->
mime_type
,
pt
->
clock_rate
);
ret
=
FALSE
;
}
return
ret
;
return
linphone_core_is_payload_type_usable_for_bandwidth
(
lc
,
pt
,
maxbw
);
}
bool_t
linphone_core_check_payload_type_usability
(
LinphoneCore
*
lc
,
const
OrtpPayloadType
*
pt
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment