[MPlayer-dev-eng] [PATCH] patch for "open url" of pnm: and rtsp: url's

Ambrose Li a.c.li at ieee.org
Mon May 12 00:12:38 CEST 2003


Hi,

when I try to "open url" from the GUI, gmplayer incorrectly prepends
http:// to the URL, causing failures to open such url's.

Patch to recognize pnm: and rtsp: (relative to CVS snapshot of
20030511) is attached.

Best regards,

-- 
Ambrose LI Cheuk-Wing  <a.c.li at ieee.org>

http://ada.dhs.org/~acli/
-------------- next part --------------
--- Gui/mplayer/gtk/url.c.dist	Thu Jan  2 10:48:29 2003
+++ Gui/mplayer/gtk/url.c	Sun May 11 17:46:54 2003
@@ -66,7 +66,11 @@
 
    if ( str )
     {
-     if ( strncmp( str,"http://",7 ) && strncmp( str,"ftp://",6 ) && strncmp( str,"mms://",6 ) )
+     if ( strncmp( str,"http://",7 )
+	&& strncmp( str,"ftp://",6 )
+	&& strncmp( str,"mms://",6 )
+	&& strncmp( str,"pnm://",6 )
+	&& strncmp( str,"rtsp://",7 ) )
       {
        gchar * tmp;
        tmp=malloc( strlen( str ) + 8 );


More information about the MPlayer-dev-eng mailing list