This commit is contained in:
Roman Arutyunyan 2012-08-20 20:44:14 +04:00
parent 6b1ba3fe07
commit 5576444928
2 changed files with 24 additions and 6 deletions

View file

@ -9,14 +9,12 @@
#include "ngx_rtmp_cmd_module.h"
#include "ngx_rtmp_netcall_module.h"
#include "ngx_rtmp_codec_module.h"
#include "ngx_rtmp_record_module.h"
static ngx_rtmp_publish_pt next_publish;
static ngx_rtmp_delete_stream_pt next_delete_stream;
static ngx_int_t ngx_rtmp_record_open(ngx_rtmp_session_t *s);
static ngx_int_t ngx_rtmp_record_close(ngx_rtmp_session_t *s);
static char * ngx_rtmp_notify_on_record_done(ngx_conf_t *cf,
ngx_command_t *cmd, void *conf);
@ -223,7 +221,7 @@ ngx_rtmp_record_write_header(ngx_file_t *file)
/* This funcion returns pointer to a static buffer */
static u_char *
u_char *
ngx_rtmp_record_make_path(ngx_rtmp_session_t *s)
{
ngx_rtmp_record_ctx_t *ctx;
@ -256,7 +254,7 @@ ngx_rtmp_record_make_path(ngx_rtmp_session_t *s)
}
static ngx_int_t
ngx_int_t
ngx_rtmp_record_open(ngx_rtmp_session_t *s)
{
ngx_rtmp_record_ctx_t *ctx;
@ -451,7 +449,7 @@ ngx_rtmp_record_notify(ngx_rtmp_session_t *s)
}
static ngx_int_t
ngx_int_t
ngx_rtmp_record_close(ngx_rtmp_session_t *s)
{
ngx_rtmp_record_ctx_t *ctx;

20
ngx_rtmp_record_module.h Normal file
View file

@ -0,0 +1,20 @@
/*
* Copyright (c) 2012 Roman Arutyunyan
*/
#ifndef _NGX_RTMP_RECORD_H_INCLUDED_
#define _NGX_RTMP_RECORD_H_INCLUDED_
#include "ngx_rtmp.h"
u_char * ngx_rtmp_record_make_path(ngx_rtmp_session_t *s);
ngx_int_t ngx_rtmp_record_open(ngx_rtmp_session_t *s);
ngx_int_t ngx_rtmp_record_close(ngx_rtmp_session_t *s);
#endif /* _NGX_RTMP_RECORD_H_INCLUDED_ */