[vlc-commits] HTTP out: fix error message

Pierre Ynard git at videolan.org
Tue Oct 4 04:20:02 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Oct  4 03:30:32 2011 +0200| [f7f350aa018db9b7ba88709430c35789b45881a2] | committer: Pierre Ynard

HTTP out: fix error message

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

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

diff --git a/modules/access_output/http.c b/modules/access_output/http.c
index 436a4dd..a599bc1 100644
--- a/modules/access_output/http.c
+++ b/modules/access_output/http.c
@@ -152,8 +152,7 @@ static int Open( vlc_object_t *p_this )
             port = NULL; /* IPv6 numeral */
         if( port != p_access->psz_path )
         {
-            int len = port ? (port - p_access->psz_path)
-                           : (int)strlen( p_access->psz_path );
+            int len = (port ? port : path) - p_access->psz_path;
             msg_Err( p_access, "\"%.*s\" HTTP host ignored", len,
                      p_access->psz_path );
             msg_Info( p_access,



More information about the vlc-commits mailing list