[MPlayer-cvslog] r35053 - trunk/gui/ui/gtk/url.c
ib
subversion at mplayerhq.hu
Sun Jul 29 01:57:25 CEST 2012
Author: ib
Date: Sun Jul 29 01:57:25 2012
New Revision: 35053
Log:
Allow more liberal URL handling.
Don't restrict the recognized protocols, but only force http://
if there is no :// in a given string at all.
Modified:
trunk/gui/ui/gtk/url.c
Modified: trunk/gui/ui/gtk/url.c
==============================================================================
--- trunk/gui/ui/gtk/url.c Sun Jul 29 00:28:04 2012 (r35052)
+++ trunk/gui/ui/gtk/url.c Sun Jul 29 01:57:25 2012 (r35053)
@@ -89,11 +89,7 @@ static void on_Button_pressed( GtkButton
if ( str )
{
- if ( strncmp( str,"http://",7 )
- && strncmp( str,"ftp://",6 )
- && strncmp( str,"mms://",6 )
- && strncmp( str,"pnm://",6 )
- && strncmp( str,"rtsp://",7 ) )
+ if ( !strstr( str,"://" ) )
{
gchar * tmp;
tmp=malloc( strlen( str ) + 8 );
More information about the MPlayer-cvslog
mailing list