1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-20 02:09:52 +00:00

support for pnm and rtsp stream opening with gui, patch by Ambrose Li <a.c.li@ieee.org>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10161 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-05-23 12:58:13 +00:00
parent 13fd5a7fca
commit f647802a3f

View File

@ -66,7 +66,11 @@ static void on_Button_pressed( GtkButton * button,gpointer user_data )
if ( str ) 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; gchar * tmp;
tmp=malloc( strlen( str ) + 8 ); tmp=malloc( strlen( str ) + 8 );