- Removed logging of account's individual audio codecs when changed.
This commit is contained in:
@ -384,23 +384,13 @@ class AccountActivity : AppCompatActivity() {
|
||||
|
||||
val ac = ArrayList(LinkedHashSet<String>(newCodecs.filter { it != "-" } as ArrayList<String>))
|
||||
if (ac != acc.audioCodec) {
|
||||
Log.d("Baresip", "New codecs ${newCodecs.filter { it != "-" }}")
|
||||
val acParam = ";audio_codecs=" + Utils.implode(ac, ",")
|
||||
if (account_set_audio_codecs(acc.accp, acParam) == 0) {
|
||||
var i = 0
|
||||
while (true) {
|
||||
val codec = account_audio_codec(acc.accp, i)
|
||||
if (codec != "") {
|
||||
Log.d("Baresip", "Found audio codec '$codec'")
|
||||
i++
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
||||
val acList = Utils.implode(ac, ",")
|
||||
if (account_set_audio_codecs(acc.accp, acList) == 0) {
|
||||
Log.d("Baresip", "New audio codecs '$acList'")
|
||||
acc.audioCodec = ac
|
||||
save = true
|
||||
} else {
|
||||
Log.e("Baresip", "Setting of audio codecs '$acParam' failed")
|
||||
Log.e("Baresip", "Setting of audio codecs '$acList' failed")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user