Skip to content

Commit

Permalink
Keep flush state
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgiuliani committed Oct 4, 2024
1 parent 0e50bd3 commit 7bfb57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/membrane/hls/sink_bin.ex
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ defmodule Membrane.HLS.SinkBin do
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}
{[notify_parent: :end_of_stream], %{state | flush: true}}
else
{[], %{state | flush: true}}
end
Expand Down

0 comments on commit 7bfb57d

Please sign in to comment.