[vlc-commits] http out: avoid warnings
Rémi Denis-Courmont
git at videolan.org
Sun Jul 23 16:54:23 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 23 17:22:23 2017 +0300| [02723c8df3d7f1d2ff933bf6eb8579777277a68c] | committer: Rémi Denis-Courmont
http out: avoid warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=02723c8df3d7f1d2ff933bf6eb8579777277a68c
---
modules/access_output/http.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/access_output/http.c b/modules/access_output/http.c
index 02828948af..2b5769e299 100644
--- a/modules/access_output/http.c
+++ b/modules/access_output/http.c
@@ -277,8 +277,11 @@ static int Open( vlc_object_t *p_this )
if( p_sys->b_metacube )
{
- httpd_header headers[] = {{ "Content-encoding", "metacube" }};
- int err = httpd_StreamSetHTTPHeaders( p_sys->p_httpd_stream, headers, sizeof( headers ) / sizeof( httpd_header ) );
+ const httpd_header headers[] = {
+ { (char *)"Content-encoding", (char *)"metacube" }
+ };
+ int err = httpd_StreamSetHTTPHeaders( p_sys->p_httpd_stream, headers,
+ ARRAY_SIZE(headers) );
if( err != VLC_SUCCESS )
{
free( p_sys );
More information about the vlc-commits
mailing list