[FFmpeg-cvslog] avio: deprecate url_poll and URLPollEntry

Anton Khirnov git at videolan.org
Tue Apr 5 02:33:09 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Mar 31 15:22:18 2011 +0200| [e2307053925260331803412b35e5731069e787c3] | committer: Anton Khirnov

avio: deprecate url_poll and URLPollEntry

They're unimplemented and nobody cared to do anything with that for
10 years.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e2307053925260331803412b35e5731069e787c3
---

 libavformat/avio.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/libavformat/avio.h b/libavformat/avio.h
index ce6429c..8130c7c 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -57,11 +57,13 @@ typedef struct URLContext {
     int is_connected;
 } URLContext;
 
+#if FF_API_OLD_AVIO
 typedef struct URLPollEntry {
     URLContext *handle;
     int events;
     int revents;
 } URLPollEntry;
+#endif
 
 /**
  * @defgroup open_modes URL open modes
@@ -243,8 +245,10 @@ void url_get_filename(URLContext *h, char *buf, int buf_size);
  */
 void url_set_interrupt_cb(URLInterruptCB *interrupt_cb);
 
+#if FF_API_OLD_AVIO
 /* not implemented */
-int url_poll(URLPollEntry *poll_table, int n, int timeout);
+attribute_deprecated int url_poll(URLPollEntry *poll_table, int n, int timeout);
+#endif
 
 /**
  * Pause and resume playing - only meaningful if using a network streaming



More information about the ffmpeg-cvslog mailing list