mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 03:06:28 +01: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:
parent
13fd5a7fca
commit
f647802a3f
@ -66,7 +66,11 @@ static void on_Button_pressed( GtkButton * button,gpointer user_data )
|
||||
|
||||
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 );
|
||||
|
Loading…
Reference in New Issue
Block a user