MT#56128 SDP manipulations: simplify CMD_ADD lookup

Do not use the `g_queue_is_empty()` to check the emptiness
of the `add_commands_*` GQueue. It's enough to check the pointer
and the first `->head` value.

Change-Id: Ie01f45d5f8bbaa5af3a09594cce145a0e83943c2
pull/1640/head
Donat Zenichev 2 years ago
parent 1a2d96d4b3
commit ada2771215

@ -355,7 +355,7 @@ static int sdp_manipulate_check(enum command_type command_type,
default: /* MT_UNKNOWN */
q_ptr = &sdp_manipulations->add_commands_glob;
}
if (q_ptr && q_ptr->head && !g_queue_is_empty(q_ptr))
if (q_ptr && q_ptr->head)
return 1;
break;

Loading…
Cancel
Save