]> git.sesse.net Git - vlc/commitdiff
HTTP: deal with https in warning too
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 28 Sep 2011 19:43:23 +0000 (22:43 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 28 Sep 2011 19:43:40 +0000 (22:43 +0300)
modules/access_output/http.c

index b5245bd2e7fb0b797d8e9bbb1b02af6cc397c75a..436a4ddeb4dbe66f2f1eb9ae9c6cb9fc538592dd 100644 (file)
@@ -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