mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
fixed file op result code checks
This commit is contained in:
@ -431,7 +431,9 @@ ngx_rtmp_dash_write_playlist(ngx_rtmp_session_t *s)
|
||||
|
||||
ngx_close_file(fd);
|
||||
|
||||
if (ngx_rtmp_dash_rename_file(ctx->playlist_bak.data, ctx->playlist.data)) {
|
||||
if (ngx_rtmp_dash_rename_file(ctx->playlist_bak.data, ctx->playlist.data)
|
||||
== NGX_FILE_ERROR)
|
||||
{
|
||||
ngx_log_error(NGX_LOG_ERR, s->connection->log, ngx_errno,
|
||||
"dash: rename failed: '%V'->'%V'",
|
||||
&ctx->playlist_bak, &ctx->playlist);
|
||||
|
Reference in New Issue
Block a user