Mercurial > mplayer.hg
changeset 3045:6c14fd789ba5
Changed the order of processing the network opening.
author | bertrand |
---|---|
date | Tue, 20 Nov 2001 22:48:43 +0000 |
parents | 606bb6943ae9 |
children | cf927aec7c6a |
files | libmpdemux/open.c |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/open.c Tue Nov 20 22:22:21 2001 +0000 +++ b/libmpdemux/open.c Tue Nov 20 22:48:43 2001 +0000 @@ -343,12 +343,16 @@ url_free(url); return NULL; } - f=streaming_start( &url, f, *file_format ); -//printf("streaming_start(%d) returned %d\n",*file_format,f); - if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, url->url); return NULL; } + //if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, url->url); return NULL; } mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ConnToServer, url->hostname ); stream=new_stream(f,STREAMTYPE_STREAM); -// return NULL; + if( streaming_start( stream , url, *file_format )<0){ + mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, filename); + url_free(url); + return NULL; + } + stream_enable_cache(stream,2048*1024); + url_free(url); return stream; } #endif