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

Fix bug in handling events in Depayloader #26

Merged
merged 6 commits into from
Aug 2, 2024

Conversation

FelonEkonom
Copy link
Member

@FelonEkonom FelonEkonom commented Aug 2, 2024

Depayloader ignores all events except Discontiunity

@FelonEkonom FelonEkonom self-assigned this Aug 2, 2024
@FelonEkonom FelonEkonom requested a review from mat-hek August 2, 2024 13:26
@FelonEkonom
Copy link
Member Author

@mat-hek CI fails because of the too old version of ex_doc, but I don't want to bump it, because newer version of it are bugged and don't generate proper documentation

lib/membrane_rtp_vp8/utils.ex Show resolved Hide resolved
@@ -37,8 +37,16 @@ defmodule Membrane.RTP.VP8.Depayloader do
end

@impl true
def handle_event(:input, %Discontinuity{} = event, _ctx, state),
do: {[forward: event], %State{state | frame_acc: %Frame{}}}
def handle_event(pad, event, _ctx, state) do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it would be clearer with a separate clause for upstream events

@FelonEkonom FelonEkonom force-pushed the fix-handling-events-in-depayloader branch from 4e4ca80 to e45e4b8 Compare August 2, 2024 15:30
@FelonEkonom FelonEkonom merged commit d5f4d29 into master Aug 2, 2024
2 of 3 checks passed
@FelonEkonom FelonEkonom deleted the fix-handling-events-in-depayloader branch August 2, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants