Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sgfn committed Aug 6, 2024
1 parent eb41e01 commit fa717fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/save_to_file/lib/save_to_file/peer_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule SaveToFile.PeerHandler do
video_writer: nil,
video_depayloader: nil,
audio_writer: nil,
audio_payloader: nil,
audio_depayloader: nil,
frames_cnt: 0
}

Expand Down
2 changes: 1 addition & 1 deletion lib/ex_webrtc/rtp/depayloader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule ExWebRTC.RTP.Depayloader do
@doc """
Processes binary data from a single RTP packet, and outputs a frame if assembled.
Returns the frame (or `nil` if a frame could not be decoded yet)
Returns the frame (or `nil` if a frame could not be depayloaded yet)
together with the updated depayloader struct.
"""
@callback depayload(depayloader(), packet :: ExRTP.Packet.t()) ::
Expand Down
3 changes: 1 addition & 2 deletions lib/ex_webrtc/rtp/opus/depayloader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ defmodule ExWebRTC.RTP.Opus.Depayloader do

@opaque t :: %__MODULE__{}

@enforce_keys []
defstruct @enforce_keys
defstruct []

@doc """
Creates a new Opus depayloader struct.
Expand Down
3 changes: 1 addition & 2 deletions lib/ex_webrtc/rtp/opus/payloader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ defmodule ExWebRTC.RTP.Opus.Payloader do

@opaque t :: %__MODULE__{}

@enforce_keys []
defstruct @enforce_keys
defstruct []

@doc """
Creates a new Opus payloader struct.
Expand Down
2 changes: 1 addition & 1 deletion lib/ex_webrtc/rtp/vp8/depayloader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule ExWebRTC.RTP.VP8.Depayloader do
@doc """
Reassembles VP8 frames from subsequent RTP packets.
Returns the frame (or `nil` if a frame could not be decoded yet)
Returns the frame (or `nil` if a frame could not be depayloaded yet)
together with the updated depayloader struct.
"""
@impl true
Expand Down

0 comments on commit fa717fa

Please sign in to comment.