File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed
lib/membrane_http_adaptive_stream Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ defmodule Membrane.HTTPAdaptiveStream.Source do
107107 description: """
108108 Specifies how much time should be discarded from each of the tracks.
109109
110- Please note that an actual discarded part of the stream might will be at most of that length
110+ Please note that an actual discarded part of the stream might be at most of that length
111111 because it needs to be aligned with HLS segments distribution.
112112 The source will send an `Membrane.Event.Discontinuity` event with `:duration` field
113113 representing duration of the discarded part of the stream.
@@ -230,13 +230,7 @@ defmodule Membrane.HTTPAdaptiveStream.Source do
230230 defp start_streaming ( % { status: status } = state )
231231 when status in [ :initialized , :waiting_on_pads ] do
232232 actions = get_stream_formats ( state ) ++ get_redemands ( state )
233-
234- state = % {
235- state
236- | status: :streaming
237- # stream: Client.generate_stream(state.client_genserver)
238- }
239-
233+ state = % { state | status: :streaming }
240234 { actions , state }
241235 end
242236
@@ -326,7 +320,7 @@ defmodule Membrane.HTTPAdaptiveStream.Source do
326320
327321 defp get_discontinuity_events ( % { initial_discontinuity_event_sent?: false } = state ) do
328322 skipped_segments_cumulative_duration =
329- ClientGenServer . get_skipped_segments_cumulative_duration_ms ( state . client_genserver )
323+ ClientGenServer . get_skipped_segments_cumulative_duration ( state . client_genserver )
330324
331325 event = % Membrane.Event.Discontinuity { duration: skipped_segments_cumulative_duration }
332326
Original file line number Diff line number Diff line change @@ -32,10 +32,9 @@ defmodule Membrane.HTTPAdaptiveStream.Source.ClientGenServer do
3232 GenServer . cast ( client_genserver , { :request_chunk_or_eos , self ( ) } )
3333 end
3434
35- @ spec get_skipped_segments_cumulative_duration_ms ( pid ( ) ) ::
36- { :ok , Membrane.Time . t ( ) } | { :error , reason :: any ( ) }
37- def get_skipped_segments_cumulative_duration_ms ( client_genserver ) do
38- GenServer . call ( client_genserver , :get_skipped_segments_cumulative_duration_ms )
35+ @ spec get_skipped_segments_cumulative_duration ( pid ( ) ) :: Membrane.Time . t ( )
36+ def get_skipped_segments_cumulative_duration ( client_genserver ) do
37+ GenServer . call ( client_genserver , :get_skipped_segments_cumulative_duration )
3938 end
4039
4140 # this function should be called by Membrane.HTTPAdaptiveStream.Source
@@ -140,7 +139,7 @@ defmodule Membrane.HTTPAdaptiveStream.Source.ClientGenServer do
140139 end
141140
142141 @ impl true
143- def handle_call ( :get_skipped_segments_cumulative_duration_ms , _from , state ) do
142+ def handle_call ( :get_skipped_segments_cumulative_duration , _from , state ) do
144143 { :ok , skipped_duration_ms } =
145144 Client . get_skipped_segments_cumulative_duration_ms ( state . client )
146145
You can’t perform that action at this time.
0 commit comments