MT#58535 rtpp_flags: parse key/val flags directly

Instead of adding key/val flags to the dictionary for
further parsing later via iteration in `call_ng_main_flags()`,
just call the `call_ng_main_flags()` directly.

Change-Id: Ia893a6b50db7a0659a42c09463169f2c0f5e595e
pull/1819/head
Donat Zenichev 2 years ago
parent 066ca7387c
commit 1e65172b52

@ -1393,7 +1393,7 @@ static void call_ng_flags_freqs(sdp_ng_flags *out, bencode_item_t *value) {
}
}
static void call_ng_main_flags(sdp_ng_flags *out, str *key, bencode_item_t *value,
void call_ng_main_flags(sdp_ng_flags *out, str *key, bencode_item_t *value,
enum call_opmode opmode)
{
str s = STR_NULL;

@ -460,7 +460,8 @@ generic:
call_ng_flags_flags(out, &key, NULL);
/* generic flags with value, but no particular processing */
else
bencode_dictionary_str_add_str(root_dict, &key, &val);
call_ng_main_flags(out, &key, bencode_str(buf, &val), opmode);
next:
start = eptr;
}

@ -287,6 +287,8 @@ void call_interfaces_free(void);
void call_interfaces_timer(void);
void call_ng_flags_flags(sdp_ng_flags *out, str *s, helper_arg dummy);
void call_ng_main_flags(sdp_ng_flags *out, str *key, bencode_item_t *value,
enum call_opmode opmode);
INLINE struct sdp_manipulations *sdp_manipulations_get_by_id(const sdp_ng_flags *f, enum media_type id) {
if (id < 0 || id >= G_N_ELEMENTS(f->sdp_manipulations))

Loading…
Cancel
Save