Permalink
Browse files

Do not add .flv to recorded streams. Otherwise it is impossible to sa…

…ve streams without extension (which is common)
  • Loading branch information...
1 parent 16cd839 commit d89663f46661acbc3020e7aefba8684ebba14929 @windock committed Nov 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/media/stream_media.erl
View
2 src/media/stream_media.erl
@@ -55,7 +55,7 @@ init([Name, record]) ->
process_flag(trap_exit, true),
error_logger:info_msg("Recording stream ~p~n", [Name]),
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)),
ok = filelib:ensure_dir(FileName),
Header = flv:header(#flv_header{version = 1, audio = 1, video = 1}),

0 comments on commit d89663f

Please sign in to comment.