Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upipe-modules: make all pipes throw ready and dead events #1045

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading