Mercurial > libavformat.hg
diff avio.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 | 724c0f6a52dc |
children | 84a7b7a2f252 |
line wrap: on
line diff
--- a/avio.c Tue Mar 03 16:53:04 2009 +0000 +++ b/avio.c Tue Mar 03 17:04:51 2009 +0000 @@ -206,6 +206,13 @@ return size; } +int url_get_file_handle(URLContext *h) +{ + if (!h->prot->url_get_file_handle) + return -1; + return h->prot->url_get_file_handle(h); +} + int url_get_max_packet_size(URLContext *h) { return h->max_packet_size;