MT#55283 shortcut list retrieval

Change-Id: I0c106cc560eccaf13e2c81db7f8c056a5826a2a2
rfuchs/gh1842
Richard Fuchs 1 year ago
parent a0896dfa05
commit 1f4c0d875e

@ -2874,8 +2874,8 @@ static void stop_recording_fn(bencode_item_t *input, call_t *call) {
}
}
// ... or `flags=[pause]`
bencode_item_t *item = bencode_dictionary_get(input, "flags");
if (item && item->type == BENCODE_LIST && item->child) {
bencode_item_t *item = bencode_dictionary_get_expect(input, "flags", BENCODE_LIST);
if (item) {
for (bencode_item_t *child = item->child; child; child = child->sibling) {
if (bencode_strcmp(child, "pause") == 0) {
pause_recording_fn(input, call);

Loading…
Cancel
Save