- 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>))
|
val ac = ArrayList(LinkedHashSet<String>(newCodecs.filter { it != "-" } as ArrayList<String>))
|
||||||
if (ac != acc.audioCodec) {
|
if (ac != acc.audioCodec) {
|
||||||
Log.d("Baresip", "New codecs ${newCodecs.filter { it != "-" }}")
|
val acList = Utils.implode(ac, ",")
|
||||||
val acParam = ";audio_codecs=" + Utils.implode(ac, ",")
|
if (account_set_audio_codecs(acc.accp, acList) == 0) {
|
||||||
if (account_set_audio_codecs(acc.accp, acParam) == 0) {
|
Log.d("Baresip", "New audio codecs '$acList'")
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
acc.audioCodec = ac
|
acc.audioCodec = ac
|
||||||
save = true
|
save = true
|
||||||
} else {
|
} 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