@@ -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