comparison stream/stream_udp.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 "rtp.h" 27 #include "udp.h"
28 28
29 static int 29 static int
30 udp_streaming_start (stream_t *stream) 30 udp_streaming_start (stream_t *stream)
31 { 31 {
32 streaming_ctrl_t *streaming_ctrl; 32 streaming_ctrl_t *streaming_ctrl;
38 streaming_ctrl = stream->streaming_ctrl; 38 streaming_ctrl = stream->streaming_ctrl;
39 fd = stream->fd; 39 fd = stream->fd;
40 40
41 if (fd < 0) 41 if (fd < 0)
42 { 42 {
43 fd = rtp_open_socket (streaming_ctrl->url); 43 fd = udp_open_socket (streaming_ctrl->url);
44 if (fd < 0) 44 if (fd < 0)
45 return -1; 45 return -1;
46 stream->fd = fd; 46 stream->fd = fd;
47 } 47 }
48 48