[vlc-commits] HTTP: deal with https in warning too

Rémi Denis-Courmont git at videolan.org
Wed Sep 28 21:43:43 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Sep 28 22:43:23 2011 +0300| [8d963a221abbc70316810526bec5d1773edc9833] | committer: Rémi Denis-Courmont

HTTP: deal with https in warning too

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

 modules/access_output/http.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access_output/http.c b/modules/access_output/http.c
index b5245bd..436a4dd 100644
--- a/modules/access_output/http.c
+++ b/modules/access_output/http.c
@@ -163,9 +163,9 @@ static int Open( vlc_object_t *p_this )
         {
             int len = path - ++port;
             msg_Err( p_access, "\"%.*s\" HTTP port ignored", len, port );
-            msg_Info( p_access,
-                      "Pass --http-port=%.*s on the command line instead.",
-                      len, port );
+            msg_Info( p_access, "Pass --%s-port=%.*s on the command line "
+                      "instead.", strcasecmp( p_access->psz_access, "https" )
+                      ? "http" : "https", len, port );
         }
     }
 #endif



More information about the vlc-commits mailing list