Mercurial > libavformat.hg
diff udp.c @ 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 | 49c1d3b27727 |
children | 9934ca658946 |
line wrap: on
line diff
--- a/udp.c Tue Mar 03 16:53:04 2009 +0000 +++ b/udp.c Tue Mar 03 17:04:51 2009 +0000 @@ -326,6 +326,9 @@ * 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 @@ udp_write, NULL, /* seek */ udp_close, + .url_get_file_handle = udp_get_file_handle, };