Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgiuliani committed Oct 4, 2024
1 parent df7fafc commit 0e50bd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/membrane/hls/sink_bin.ex
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ defmodule Membrane.HLS.SinkBin do
{[], state}
end

def handle_child_notification(:flush, _, ctx, state) do
@impl true
def handle_parent_notification(:flush, ctx, state) do
if not state.flush and all_streams_ended?(ctx, state.ended_sinks) do
Agent.update(state.packager_pid, &Packager.flush/1, :infinity)
{[notify_parent: :end_of_stream], state}
Expand Down

0 comments on commit 0e50bd3

Please sign in to comment.