Skip to content

Commit

Permalink
upipe_ts_split: fix output release during the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
quarium authored and cmassiot committed Sep 27, 2024
1 parent 60b32a0 commit 4ce21ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/upipe-ts/upipe_ts_split.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ static void upipe_ts_split_input(struct upipe *upipe, struct uref *uref,
uint16_t pid = ts_get_pid(ts_header);
UBASE_FATAL(upipe, uref_block_peek_unmap(uref, 0, buffer, ts_header))

struct uchain *uchain;
ulist_foreach (&upipe_ts_split->pids[pid].subs, uchain) {
struct uchain *uchain, *uchain_tmp;
ulist_delete_foreach(&upipe_ts_split->pids[pid].subs, uchain, uchain_tmp) {
struct upipe_ts_split_sub *output =
upipe_ts_split_sub_from_uchain_pid(uchain);
if (likely(uchain->next == NULL)) {
Expand Down

0 comments on commit 4ce21ad

Please sign in to comment.