-
Notifications
You must be signed in to change notification settings - Fork 3
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
V0.18 #53
Conversation
], | ||
input_stream_format: [ | ||
spec: RawAudio.t(), | ||
type: :stream_format, | ||
default: nil, | ||
description: """ | ||
Input type - used to set input sample rate and channels. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def_options
is used to define options passed in spec, eg. child(:source, %Source{option: value})
. There is no need to put input_stream_format
here, because it won't be passed in spec, it is just another field in state
defp validate_pts_integrity(true = _check_pts_integrity?, encoded_buffers, input_pts) do | ||
cond do | ||
length(encoded_buffers) >= 2 and Enum.at(encoded_buffers, 1).pts > input_pts -> | ||
Membrane.Logger.warning("PTS values are overlapping") | ||
|
||
length(encoded_buffers) >= 2 and Enum.at(encoded_buffers, 1).pts < input_pts -> | ||
Membrane.Logger.warning("PTS values are not continous") | ||
|
||
true -> | ||
:ok | ||
end | ||
end | ||
|
||
defp validate_pts_integrity(_check_pts_integrity?, _packets, _input_pts) do | ||
:ok | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactor this function according to the suggestion from membraneframework/membrane_opus_plugin#59 (comment) (update conditions in cond
and remove first argument)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bump version to 18.5
No description provided.