Skip to content

Commit 9e8a15b

Browse files
committed
lint
1 parent 9aa1ce9 commit 9e8a15b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lib/ex_webrtc_recorder/converter.ex

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,12 @@ defmodule ExWebRTC.Recorder.Converter do
337337
|> Map.new()
338338
end
339339

340-
defp convert_stream!({stream_id, %{video: video_ctxs, audio: audio_ctxs}}, output_path, thumbnails_ctx, reencode_ctx) do
340+
defp convert_stream!(
341+
{stream_id, %{video: video_ctxs, audio: audio_ctxs}},
342+
output_path,
343+
thumbnails_ctx,
344+
reencode_ctx
345+
) do
341346
video_ctxs = if map_size(video_ctxs) == 0, do: %{nil: nil}, else: video_ctxs
342347

343348
Enum.map(video_ctxs, fn {rid, video_ctx} ->
@@ -347,7 +352,9 @@ defmodule ExWebRTC.Recorder.Converter do
347352
output_file |> Path.dirname() |> File.mkdir_p!()
348353

349354
audio_ctx = audio_ctxs[nil]
350-
if video_ctx == nil and audio_ctx == nil, do: raise "Stream #{stream_id} contains no tracks!"
355+
356+
if video_ctx == nil and audio_ctx == nil,
357+
do: raise("Stream #{stream_id} contains no tracks!")
351358

352359
{output_id, convert_file!(video_ctx, audio_ctx, output_file, thumbnails_ctx, reencode_ctx)}
353360
end)
@@ -387,6 +394,7 @@ defmodule ExWebRTC.Recorder.Converter do
387394
end
388395

389396
defp maybe_generate_thumbnail!(stream_manifest, _file, nil), do: stream_manifest
397+
390398
defp maybe_generate_thumbnail!(stream_manifest, file, ctx) do
391399
file
392400
|> FFmpeg.generate_thumbnail!(ctx)

0 commit comments

Comments
 (0)