Skip to content

Commit

Permalink
Implement suggestion from CR
Browse files Browse the repository at this point in the history
  • Loading branch information
FelonEkonom committed Apr 3, 2024
1 parent 1430ecc commit 8326930
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/membrane/core/element/demand_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ defmodule Membrane.Core.Element.DemandController do
with {:ok, pad_data} when not pad_data.end_of_stream? <- PadModel.get_data(state, pad_ref),
%State{playback: :playing} <- state do
if pad_data.direction == :input do
raise("cannot snapshot atomic counter in input pad #{inspect(pad_ref)}")
raise Membrane.ElementError,
"Cannot snapshot atomic counter in input pad #{inspect(pad_ref)}"
end

do_snapshot_atomic_demand(pad_data, state)
Expand Down

0 comments on commit 8326930

Please sign in to comment.