[Mplayer-cvslog] CVS: main/libmpdemux asf_mmst_streaming.c,1.1,1.2
Bertrand Baudet
bertrand at mplayerhq.hu
Tue Sep 3 03:25:48 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv6170
Modified Files:
asf_mmst_streaming.c
Log Message:
Checked if the connection succeeded before writing in the socket.
Index: asf_mmst_streaming.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asf_mmst_streaming.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- asf_mmst_streaming.c 14 May 2002 22:31:21 -0000 1.1
+++ asf_mmst_streaming.c 3 Sep 2002 01:25:31 -0000 1.2
@@ -513,11 +513,19 @@
URL_t *url1 = stream->streaming_ctrl->url;
int s = stream->fd;
+ if( s>0 ) {
+ close( stream->fd );
+ stream->fd = -1;
+ }
+
/* parse url */
path = strchr(url1->file,'/') + 1;
url1->port=1755;
s = connect2Server( url1->hostname, url1->port );
+ if( s<0 ) {
+ return s;
+ }
printf ("connected\n");
/*
More information about the MPlayer-cvslog
mailing list