Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Commit

Permalink
Do not add .flv to recorded streams. Otherwise it is impossible to sa…
Browse files Browse the repository at this point in the history
…ve streams without extension (which is common)
  • Loading branch information
windock committed Nov 27, 2009
1 parent 16cd839 commit d89663f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media/stream_media.erl
Expand Up @@ -55,7 +55,7 @@ init([Name, record]) ->
process_flag(trap_exit, true), process_flag(trap_exit, true),
error_logger:info_msg("Recording stream ~p~n", [Name]), error_logger:info_msg("Recording stream ~p~n", [Name]),
Clients = ets:new(clients, [set, private]), Clients = ets:new(clients, [set, private]),
FileName = filename:join([file_play:file_dir(), Name ++ ".flv"]), FileName = filename:join([file_play:file_dir(), Name]),
(catch file:delete(FileName)), (catch file:delete(FileName)),
ok = filelib:ensure_dir(FileName), ok = filelib:ensure_dir(FileName),
Header = flv:header(#flv_header{version = 1, audio = 1, video = 1}), Header = flv:header(#flv_header{version = 1, audio = 1, video = 1}),
Expand Down

0 comments on commit d89663f

Please sign in to comment.