| 
																	
																	
																		
																	
																	
																 | 
																@@ -63,6 +63,8 @@ static int tcp_open(URLContext *h, const char *uri, int flags) | 
															
														
														
													
														
															
																 | 
																 | 
																    hints.ai_family = AF_UNSPEC; | 
																 | 
																 | 
																    hints.ai_family = AF_UNSPEC; | 
															
														
														
													
														
															
																 | 
																 | 
																    hints.ai_socktype = SOCK_STREAM; | 
																 | 
																 | 
																    hints.ai_socktype = SOCK_STREAM; | 
															
														
														
													
														
															
																 | 
																 | 
																    snprintf(portstr, sizeof(portstr), "%d", port); | 
																 | 
																 | 
																    snprintf(portstr, sizeof(portstr), "%d", port); | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    if (listen_socket) | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        hints.ai_flags |= AI_PASSIVE; | 
															
														
														
													
														
															
																 | 
																 | 
																    ret = getaddrinfo(hostname, portstr, &hints, &ai); | 
																 | 
																 | 
																    ret = getaddrinfo(hostname, portstr, &hints, &ai); | 
															
														
														
													
														
															
																 | 
																 | 
																    if (ret) { | 
																 | 
																 | 
																    if (ret) { | 
															
														
														
													
														
															
																 | 
																 | 
																        av_log(h, AV_LOG_ERROR, | 
																 | 
																 | 
																        av_log(h, AV_LOG_ERROR, | 
															
														
														
													
												
													
														
															
																| 
																	
																		
																	
																	
																	
																 | 
																
  |