Browse Source

MT#58535 rtpp_flags: remove unused `flags` bencode list item

Since the generic flags parsing is done (from now on) directly
in the `parse_rtpp_flags()`, there is no need to keep a separate
bencode list object to store them, which was originally intended
to be used later for parsing in `call_ng_flags_flags()`,
but not the case anymore.

Change-Id: I7898e29cabecfd6e8429c064d7b5904d94c50513
pull/1819/head
Donat Zenichev 2 years ago
parent
commit
ff98b83f6f
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      daemon/control_ng_flags_parser.c

+ 1
- 6
daemon/control_ng_flags_parser.c View File

@ -261,7 +261,7 @@ void parse_rtpp_flags(const str * rtpp_flags, bencode_item_t * root_dict,
{
char * start, * end, * eptr, c;
str key, val, s;
bencode_item_t * codec, * direction, * flags;
bencode_item_t * codec, * direction;
bencode_buffer_t * buf;
unsigned int transport = 0;
@ -278,7 +278,6 @@ void parse_rtpp_flags(const str * rtpp_flags, bencode_item_t * root_dict,
codec = bencode_dictionary(buf);
direction = bencode_list(buf);
flags = bencode_list(buf);
while (start < end)
{
@ -478,9 +477,5 @@ next:
if (direction && direction->child)
bencode_dictionary_add(root_dict, "direction", direction);
/* add one-key flags to the root dict */
if (flags && flags->child)
bencode_dictionary_add(root_dict, "flags", flags);
rtpp_flags->s[rtpp_flags->len] = c;
}

Loading…
Cancel
Save