Mercurial > mplayer.hg
comparison stream/stream_rtp.c @ 19318:a3ddd3320b47
removed udp socket creation code from rtp stack to a new dedicated udp helper file
author | ben |
---|---|
date | Fri, 04 Aug 2006 19:31:53 +0000 |
parents | 0792ad01e9bf |
children | d261f5109660 |
comparison
equal
deleted
inserted
replaced
19317:e0b496cf9863 | 19318:a3ddd3320b47 |
---|---|
22 #include <stdlib.h> | 22 #include <stdlib.h> |
23 #include <string.h> | 23 #include <string.h> |
24 | 24 |
25 #include "stream.h" | 25 #include "stream.h" |
26 #include "url.h" | 26 #include "url.h" |
27 #include "udp.h" | |
27 #include "rtp.h" | 28 #include "rtp.h" |
28 | 29 |
29 static int | 30 static int |
30 rtp_streaming_read (int fd, char *buffer, | 31 rtp_streaming_read (int fd, char *buffer, |
31 int size, streaming_ctrl_t *streaming_ctrl) | 32 int size, streaming_ctrl_t *streaming_ctrl) |
45 streaming_ctrl = stream->streaming_ctrl; | 46 streaming_ctrl = stream->streaming_ctrl; |
46 fd = stream->fd; | 47 fd = stream->fd; |
47 | 48 |
48 if (fd < 0) | 49 if (fd < 0) |
49 { | 50 { |
50 fd = rtp_open_socket (streaming_ctrl->url); | 51 fd = udp_open_socket (streaming_ctrl->url); |
51 if (fd < 0) | 52 if (fd < 0) |
52 return -1; | 53 return -1; |
53 stream->fd = fd; | 54 stream->fd = fd; |
54 } | 55 } |
55 | 56 |