Skip to content

Commit

Permalink
Add info log on sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dmorn committed Aug 7, 2023
1 parent 790d62f commit f892d50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/membrane/hls/sink.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ defmodule Membrane.HLS.Sink do
def handle_parent_notification({:start, playback}, _ctx, state) do
if state.timer != nil, do: Process.cancel_timer(state.timer)

Membrane.Logger.info(
"Syncing playlist #{URI.to_string(state.playlist.uri)} @ #{Membrane.Time.pretty_duration(playback)}"
)

{segments, builder} = Builder.sync(state.builder, Membrane.Time.round_to_seconds(playback))
state = %{state | builder: builder}

Expand Down

0 comments on commit f892d50

Please sign in to comment.