[vlc-commits] http: use boolean for version

Rémi Denis-Courmont git at videolan.org
Sun Dec 13 18:08:30 CET 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 13 18:58:33 2015 +0200| [df3ede4774fc1936de79e72db51abd53c84941c6] | committer: Rémi Denis-Courmont

http: use boolean for version

The version can only ever be 1 (meaning 1.1, the default) or 0
(meaning 1.0, the fallback).

This plugin does not support version 2.0 or obsolete version 0.9.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df3ede4774fc1936de79e72db51abd53c84941c6
---

 modules/access/http.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index 39789d8..2212955 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -148,11 +148,11 @@ struct access_sys_t
     /* */
     int        i_code;
     const char *psz_protocol;
-    int        i_version;
 
     char       *psz_mime;
     char       *psz_pragma;
     char       *psz_location;
+    bool i_version;
     bool b_mms;
     bool b_icecast;
 #ifdef HAVE_ZLIB_H



More information about the vlc-commits mailing list