Skip to content

Commit

Permalink
upipe-modules: make all pipes throw ready and dead events
Browse files Browse the repository at this point in the history
  • Loading branch information
JDarnley authored and cmassiot committed Dec 7, 2024
1 parent 4f2aa2d commit b42e4f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/upipe-modules/upipe_row_join.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ static int upipe_row_join_control(struct upipe *upipe, int command,

static void upipe_row_join_free(struct upipe *upipe)
{
upipe_throw_dead(upipe);
upipe_row_join_clean_ubuf_mgr(upipe);
upipe_row_join_clean_urefcount(upipe);
upipe_row_join_clean_output(upipe);
Expand All @@ -178,6 +179,7 @@ static struct upipe *upipe_row_join_alloc(struct upipe_mgr *mgr,
upipe_row_join_init_ubuf_mgr(upipe);
upipe_row_join_init_urefcount(upipe);

upipe_throw_ready(upipe);
return upipe;
}

Expand Down
1 change: 1 addition & 0 deletions lib/upipe-modules/upipe_rtp_pcm_pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ static struct upipe *upipe_rtp_pcm_pack_alloc(struct upipe_mgr *mgr,
upipe_rtp_pcm_pack->output_time = 0;
upipe_rtp_pcm_pack->output_samples = 0;

upipe_throw_ready(upipe);
return upipe;
}

Expand Down
2 changes: 2 additions & 0 deletions lib/upipe-modules/upipe_separate_fields.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ static int upipe_separate_fields_control(struct upipe *upipe, int command,

static void upipe_separate_fields_free(struct upipe *upipe)
{
upipe_throw_dead(upipe);
upipe_separate_fields_clean_urefcount(upipe);
upipe_separate_fields_clean_output(upipe);
upipe_separate_fields_free_void(upipe);
Expand All @@ -148,6 +149,7 @@ static struct upipe *upipe_separate_fields_alloc(struct upipe_mgr *mgr,

upipe_separate_fields_init_urefcount(upipe);
upipe_separate_fields_init_output(upipe);
upipe_throw_ready(upipe);

return upipe;
}
Expand Down

0 comments on commit b42e4f4

Please sign in to comment.