summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-29 21:27:07 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-06-29 21:27:07 +0000
commit44e7b2fced69523325cd68bacbf7246d02d3be9a (patch)
tree998e221edfe797bc79ae1803c9746468214a7b3e /libmpdemux
parentdc608be23256a709a42d80ac6840f860e83bef4d (diff)
downloadmpv-44e7b2fced69523325cd68bacbf7246d02d3be9a.tar.bz2
mpv-44e7b2fced69523325cd68bacbf7246d02d3be9a.tar.xz
2 more unused functions removal (trying to sync with xine)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18855 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/librtsp/rtsp.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/libmpdemux/librtsp/rtsp.c b/libmpdemux/librtsp/rtsp.c
index 4fa1957338..f938610cef 100644
--- a/libmpdemux/librtsp/rtsp.c
+++ b/libmpdemux/librtsp/rtsp.c
@@ -114,58 +114,6 @@ struct rtsp_s {
* network utilities
*/
-static int host_connect_attempt(struct in_addr ia, int port) {
-
- int s;
- struct sockaddr_in sin;
-
- s = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
- if (s == -1) {
- mp_msg(MSGT_OPEN, MSGL_ERR, "rtsp: socket(): %s\n", strerror(errno));
- return -1;
- }
-
- sin.sin_family = AF_INET;
- sin.sin_addr = ia;
- sin.sin_port = htons(port);
-
- if (connect(s, (struct sockaddr *)&sin, sizeof(sin))==-1
-#ifndef HAVE_WINSOCK2
- && errno != EINPROGRESS) {
-#else
- && WSAGetLastError() == WSAEINPROGRESS) {
-#endif
- mp_msg(MSGT_OPEN, MSGL_ERR, "rtsp: connect(): %s\n", strerror(errno));
- closesocket(s);
- return -1;
- }
-
- return s;
-}
-
-static int host_connect(const char *host, int port) {
-
- struct hostent *h;
- int i, s;
-
- h = gethostbyname(host);
- if (h == NULL) {
- mp_msg(MSGT_OPEN, MSGL_ERR, "rtsp: unable to resolve '%s'.\n", host);
- return -1;
- }
-
- for (i = 0; h->h_addr_list[i]; i++) {
- struct in_addr ia;
-
- memcpy (&ia, h->h_addr_list[i], 4);
- s = host_connect_attempt(ia, port);
- if(s != -1)
- return s;
- }
- mp_msg(MSGT_OPEN, MSGL_ERR, "rtsp: unable to connect to '%s'.\n", host);
- return -1;
-}
-
static int write_stream(int s, const char *buf, int len) {
int total, timeout;