From f0a80394645ce436307d3d458878689411a44ba7 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Tue, 3 Mar 2009 17:04:51 +0000 Subject: 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. Originally committed as revision 17779 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtpdec.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/rtpdec.h') diff --git a/libavformat/rtpdec.h b/libavformat/rtpdec.h index c5350e746a..1a243f89c8 100644 --- a/libavformat/rtpdec.h +++ b/libavformat/rtpdec.h @@ -69,7 +69,9 @@ void rtp_parse_close(RTPDemuxContext *s); int rtp_get_local_port(URLContext *h); int rtp_set_remote_url(URLContext *h, const char *uri); +#if (LIBAVFORMAT_VERSION_MAJOR <= 52) void rtp_get_file_handles(URLContext *h, int *prtp_fd, int *prtcp_fd); +#endif /** * some rtp servers assume client is dead if they don't hear from them... -- cgit v1.2.3