Skip to content

Commit

Permalink
Fix manual demands on ended inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Karolk99 committed Jul 31, 2024
1 parent 22e7ae8 commit ea1f48e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/membrane_mp4/muxer/cmaf.ex
Original file line number Diff line number Diff line change
Expand Up @@ -403,14 +403,10 @@ defmodule Membrane.MP4.Muxer.CMAF do
|> Map.values()
|> Enum.all?(& &1.end_of_stream?)

if SamplesQueue.empty?(cache) do
if processing_finished? do
if SamplesQueue.empty?(cache) and processing_finished? do
end_of_streams = generate_output_end_of_streams(ctx)

{end_of_streams, state}
else
{[redemand: output_pad], state}
end
else
generate_end_of_stream_segment(processing_finished?, pad, ctx, state)
end
Expand Down

0 comments on commit ea1f48e

Please sign in to comment.