mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-18 17:21:08 +02:00
added
This commit is contained in:
parent
6b1ba3fe07
commit
5576444928
|
@ -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
20
ngx_rtmp_record_module.h
Normal 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_ */
|
Loading…
Reference in a new issue