Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename handle_write and handle_process to handle_buffer #506

Merged
merged 4 commits into from
Jan 11, 2023

Conversation

FelonEkonom
Copy link
Member

@FelonEkonom FelonEkonom self-assigned this Jan 11, 2023
@FelonEkonom FelonEkonom marked this pull request as ready for review January 11, 2023 16:20
@@ -82,7 +82,7 @@ defmodule Membrane.Core.Element.BufferController do
end

@doc """
Executes `handle_process_list` or `handle_write_list` callback.
Executes `handle_buffer_list` or `handle_buffer_list` callback.
Copy link
Member

Choose a reason for hiding this comment

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

🤔


For pads in push mode it is invoked when buffers arrive.
"""
@callback handle_buffer_list(
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it could be called handle_buffers or handle_buffers_batch or at least handle_buffers_list?

@@ -48,6 +46,38 @@ defmodule Membrane.Element.WithInputPads do
state :: Element.state_t()
) :: Membrane.Element.Base.callback_return_t()

@doc """
Callback that is called when buffer should be written by the Element.
Copy link
Member

Choose a reason for hiding this comment

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

'written' seems no longer accurate

@@ -8,7 +8,7 @@ defmodule Membrane.Testing.SinkTest do
test "demands when autodemand is true" do
Copy link
Member

Choose a reason for hiding this comment

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

the describe above is outdated

@@ -20,7 +20,7 @@ defmodule Membrane.Testing.EndpointTest do
test "demands when autodemand is true" do
Copy link
Member

Choose a reason for hiding this comment

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

the describe above is outdated

@FelonEkonom FelonEkonom merged commit 2cd5a5d into master Jan 11, 2023
@FelonEkonom FelonEkonom deleted the handle-buffer branch January 11, 2023 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants