Skip to content

Conversation

Noarkhh
Copy link
Contributor

@Noarkhh Noarkhh commented Sep 25, 2025

No description provided.

@Noarkhh Noarkhh force-pushed the fix-storage-endpoints branch 2 times, most recently from e523c71 to a0b8130 Compare September 25, 2025 11:20
@Noarkhh Noarkhh requested a review from mat-hek September 25, 2025 11:20
@Noarkhh Noarkhh self-assigned this Sep 29, 2025
@Noarkhh Noarkhh added this to Smackore Sep 29, 2025
@Noarkhh Noarkhh moved this to In Review in Smackore Sep 29, 2025
@Noarkhh Noarkhh force-pushed the fix-storage-endpoints branch from a0b8130 to f6ac0a1 Compare September 29, 2025 09:29
@Noarkhh Noarkhh requested review from varsill and FelonEkonom October 1, 2025 09:23
Comment on lines +26 to +36
pipeline_tail = fn builder ->
builder
|> child(:aac_audio_transcoder, %Membrane.Transcoder{
output_stream_format: AAC,
transcoding_policy: transcoding_policy
})
|> child(:file_sink, %Membrane.File.Sink{location: location})
end

spec =
StorageEndpoints.get_spec_for_single_track_output(:audio, track_builders, pipeline_tail)
Copy link
Member

Choose a reason for hiding this comment

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

NIT: IMO it would feel more natural this way:

Suggested change
pipeline_tail = fn builder ->
builder
|> child(:aac_audio_transcoder, %Membrane.Transcoder{
output_stream_format: AAC,
transcoding_policy: transcoding_policy
})
|> child(:file_sink, %Membrane.File.Sink{location: location})
end
spec =
StorageEndpoints.get_spec_for_single_track_output(:audio, track_builders, pipeline_tail)
StorageEndpoints.get_spec_for_single_track_output(:audio, track_builders, fn builder ->
builder
|> child(:aac_audio_transcoder, %Membrane.Transcoder{
output_stream_format: AAC,
transcoding_policy: transcoding_policy
})
|> child(:file_sink, %Membrane.File.Sink{location: location})
end)

Comment on lines +30 to +31
not Enum.empty?(Enum.filter(input_kinds, &(&1 in output_kinds))),
do: {input_path, output_type, Enum.filter(input_kinds, &(&1 in output_kinds))}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
not Enum.empty?(Enum.filter(input_kinds, &(&1 in output_kinds))),
do: {input_path, output_type, Enum.filter(input_kinds, &(&1 in output_kinds))}
kinds = Enum.filter(input_kinds, &(&1 in output_kinds)),
not Enum.empty?(kinds),
do: {input_path, output_type, kinds}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

3 participants