comparison rtpdec.h @ 4640:b34d9614b887 libavformat

Add url_get_file_handle(), which is used to get the file descriptor associated with the I/O handle (e.g. the fd returned by open()). See "[RFC] rtsp.c EOF support" thread. There were previously some URI-specific implementations of the same idea, e.g. rtp_get_file_handles() and udp_get_file_handle(). All of these are deprecated by this patch and will be removed at the next major API bump.
author rbultje
date Tue, 03 Mar 2009 17:04:51 +0000
parents 85c7d517d556
children 93b0d64bf0c9
comparison
equal deleted inserted replaced
4639:70321467b4f9 4640:b34d9614b887
67 const uint8_t *buf, int len); 67 const uint8_t *buf, int len);
68 void rtp_parse_close(RTPDemuxContext *s); 68 void rtp_parse_close(RTPDemuxContext *s);
69 69
70 int rtp_get_local_port(URLContext *h); 70 int rtp_get_local_port(URLContext *h);
71 int rtp_set_remote_url(URLContext *h, const char *uri); 71 int rtp_set_remote_url(URLContext *h, const char *uri);
72 #if (LIBAVFORMAT_VERSION_MAJOR <= 52)
72 void rtp_get_file_handles(URLContext *h, int *prtp_fd, int *prtcp_fd); 73 void rtp_get_file_handles(URLContext *h, int *prtp_fd, int *prtcp_fd);
74 #endif
73 75
74 /** 76 /**
75 * some rtp servers assume client is dead if they don't hear from them... 77 * some rtp servers assume client is dead if they don't hear from them...
76 * so we send a Receiver Report to the provided ByteIO context 78 * so we send a Receiver Report to the provided ByteIO context
77 * (we don't have access to the rtcp handle from here) 79 * (we don't have access to the rtcp handle from here)