File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments