From 5ed7825c0cc607d5ede8cb9c874f50f070ff51db Mon Sep 17 00:00:00 2001 From: mainyaa Date: Thu, 6 Aug 2015 15:43:52 +0900 Subject: [PATCH] Fix datetime system bug --- hls/ngx_rtmp_hls_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hls/ngx_rtmp_hls_module.c b/hls/ngx_rtmp_hls_module.c index fad767d..c489a73 100644 --- a/hls/ngx_rtmp_hls_module.c +++ b/hls/ngx_rtmp_hls_module.c @@ -889,7 +889,7 @@ ngx_rtmp_hls_get_fragment_datetime(ngx_rtmp_session_t *s, uint64_t ts) case NGX_RTMP_HLS_DATETIME_SYSTEM: datetime->data = (u_char *) ngx_pcalloc(s->connection->pool, ngx_cached_http_log_iso8601.len * sizeof(u_char)); - ngx_cpymem(&datetime->data, (const void *) &ngx_cached_http_log_iso8601.data, ngx_cached_http_log_iso8601.len); + ngx_cpymem(datetime->data, ngx_cached_http_log_iso8601.data, ngx_cached_http_log_iso8601.len); datetime->len = ngx_cached_http_log_iso8601.len; return datetime;