diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2009-03-03 17:04:51 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2009-03-03 17:04:51 +0000 |
commit | f0a80394645ce436307d3d458878689411a44ba7 (patch) | |
tree | 78da33e8ec44b8767300dcf5fca4b3e6213fbdd4 /libavformat/udp.c | |
parent | 2fea965070a96a04a46513cc524ac4cfcf622fd8 (diff) | |
download | ffmpeg-f0a80394645ce436307d3d458878689411a44ba7.tar.gz |
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
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r-- | libavformat/udp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index 70d0e2b38c..a89de0080a 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -326,6 +326,9 @@ int udp_get_local_port(URLContext *h) * streams at the same time. * @param h media file context */ +#if (LIBAVFORMAT_VERSION_MAJOR >= 53) +static +#endif int udp_get_file_handle(URLContext *h) { UDPContext *s = h->priv_data; @@ -528,4 +531,5 @@ URLProtocol udp_protocol = { udp_write, NULL, /* seek */ udp_close, + .url_get_file_handle = udp_get_file_handle, }; |