Skip to content

Commit

Permalink
Fix missing declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
DispatchCommit committed Jan 23, 2020
1 parent baf3e18 commit 3fdf813
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion hls/ngx_rtmp_hls_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,7 @@ ngx_rtmp_hls_open_fragment(ngx_rtmp_session_t *s, uint64_t ts,
ngx_rtmp_codec_ctx_t *codec_ctx;
ngx_rtmp_hls_frag_t *f;
ngx_rtmp_hls_app_conf_t *hacf;
ngx_rtmp_core_srv_conf_t *cscf;

ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_hls_module);

Expand Down Expand Up @@ -1075,7 +1076,7 @@ ngx_rtmp_hls_open_fragment(ngx_rtmp_session_t *s, uint64_t ts,
codec_ctx = ngx_rtmp_get_module_ctx(s, ngx_rtmp_codec_module);

if (ngx_rtmp_mpegts_open_file(&ctx->file, ctx->stream.data,
s->connection->log, codec_ctx, mpegts_cc)
cscf->connection->log, codec_ctx, mpegts_cc)
!= NGX_OK)
{
return NGX_ERROR;
Expand Down
2 changes: 1 addition & 1 deletion hls/ngx_rtmp_mpegts.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ ngx_rtmp_mpegts_init_encryption(ngx_rtmp_mpegts_file_t *file,

ngx_int_t
ngx_rtmp_mpegts_open_file(ngx_rtmp_mpegts_file_t *file, u_char *path,
ngx_log_t *log, ngx_rtmp_codec_ctx_t *codec_ctx, ngx_uint_t mpegts_cc)
ngx_uint_t access, ngx_log_t *log, ngx_rtmp_codec_ctx_t *codec_ctx, ngx_uint_t mpegts_cc)
{
file->log = log;

Expand Down
2 changes: 1 addition & 1 deletion hls/ngx_rtmp_mpegts.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ typedef struct {
ngx_int_t ngx_rtmp_mpegts_init_encryption(ngx_rtmp_mpegts_file_t *file,
u_char *key, size_t key_len, uint64_t iv);
ngx_int_t ngx_rtmp_mpegts_open_file(ngx_rtmp_mpegts_file_t *file, u_char *path,
ngx_log_t *log, ngx_rtmp_codec_ctx_t *codec_ctx, ngx_uint_t mpegts_cc);
ngx_uint_t access, ngx_log_t *log, ngx_rtmp_codec_ctx_t *codec_ctx, ngx_uint_t mpegts_cc);
ngx_int_t ngx_rtmp_mpegts_close_file(ngx_rtmp_mpegts_file_t *file);
ngx_int_t ngx_rtmp_mpegts_write_frame(ngx_rtmp_mpegts_file_t *file,
ngx_rtmp_mpegts_frame_t *f, ngx_buf_t *b);
Expand Down

0 comments on commit 3fdf813

Please sign in to comment.