changeset 12269:c0c2eb1bfbf1

Stop parsing an url after connection failure Patch by adland
author rtognimp
date Sat, 24 Apr 2004 13:19:20 +0000
parents 4ab5c05ef3eb
children 24c13ef4f42b
files libmpdemux/open.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/open.c	Sat Apr 24 13:16:16 2004 +0000
+++ b/libmpdemux/open.c	Sat Apr 24 13:19:20 2004 +0000
@@ -527,8 +527,8 @@
         stream=new_stream(f,STREAMTYPE_STREAM);
 	if( streaming_start( stream, file_format, url )<0){
           mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, filename);
-	  //url_free(url);
-	  //return NULL;
+	  url_free(url);
+	  return NULL;
 	} else {
         mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ConnToServer, url->hostname );
 	url_free(url);