Skip to content

Commit e8f6e1d

Browse files
committed
Fix dialyzer
1 parent 9e41ba9 commit e8f6e1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ex_hls/client.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ defmodule ExHLS.Client do
133133
}
134134
end
135135

136-
@spec read_video_chunk(client()) :: __MODULE__.Chunk.t() | :end_of_stream
136+
@spec read_video_chunk(client()) :: {ExHLS.Chunk.t() | :end_of_stream, client()}
137137
def read_video_chunk(%__MODULE__{} = client), do: pop_queue_or_do_read_chunk(client, :video)
138138

139-
@spec read_audio_chunk(client()) :: __MODULE__.Chunk.t() | :end_of_stream
139+
@spec read_audio_chunk(client()) :: {ExHLS.Chunk.t() | :end_of_stream, client()}
140140
def read_audio_chunk(%__MODULE__{} = client), do: pop_queue_or_do_read_chunk(client, :audio)
141141

142142
defp pop_queue_or_do_read_chunk(client, media_type) do
@@ -153,7 +153,7 @@ defmodule ExHLS.Client do
153153
end
154154

155155
@spec do_read_chunk(client(), :audio | :video) ::
156-
{__MODULE__.Chunk.t() | :end_of_stream | {:error, atom()}, client()}
156+
{ExHLS.Chunk.t() | :end_of_stream | {:error, atom()}, client()}
157157
defp do_read_chunk(client, media_type) do
158158
client = ensure_media_playlist_loaded(client)
159159

0 commit comments

Comments
 (0)