1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00

Changed the order of processing the network opening.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3046 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
bertrand 2001-11-20 22:48:43 +00:00
parent 65800caaaa
commit d4621f881f

View File

@ -343,12 +343,16 @@ tv_err:
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