From 440ca5ac0fa26981dcd23d9d064b52000e49b509 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 2 Dec 2020 15:51:40 -0500 Subject: [PATCH] TT#92250 fix to keep supp codecs last in the list Change-Id: I3ed4993e6904e8236812d4a11619945c7d386689 --- daemon/codec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/codec.c b/daemon/codec.c index de43b9b82..183f29dae 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -629,6 +629,10 @@ static void __accept_transcode_codecs(struct call_media *receiver, struct call_m insert_pos = insert_pos->prev; } } + else { + if (!insert_pos) + insert_pos = receiver->codecs_prefs_recv.tail; + } if (!insert_pos) { g_queue_push_head(&receiver->codecs_prefs_recv, pt);