Commit fa104e14 authored by Anton Khirnov's avatar Anton Khirnov

avio: deprecate av_url_read_pause

It's not used anywhere internally.

Salvage its documentation for ffio_read_pause.
parent 5f2e6c0f
...@@ -388,12 +388,14 @@ void url_set_interrupt_cb(URLInterruptCB *interrupt_cb) ...@@ -388,12 +388,14 @@ void url_set_interrupt_cb(URLInterruptCB *interrupt_cb)
url_interrupt_cb = interrupt_cb; url_interrupt_cb = interrupt_cb;
} }
#if FF_API_OLD_AVIO
int av_url_read_pause(URLContext *h, int pause) int av_url_read_pause(URLContext *h, int pause)
{ {
if (!h->prot->url_read_pause) if (!h->prot->url_read_pause)
return AVERROR(ENOSYS); return AVERROR(ENOSYS);
return h->prot->url_read_pause(h, pause); return h->prot->url_read_pause(h, pause);
} }
#endif
int64_t av_url_read_seek(URLContext *h, int64_t av_url_read_seek(URLContext *h,
int stream_index, int64_t timestamp, int flags) int stream_index, int64_t timestamp, int flags)
......
...@@ -114,6 +114,7 @@ attribute_deprecated int64_t url_filesize(URLContext *h); ...@@ -114,6 +114,7 @@ attribute_deprecated int64_t url_filesize(URLContext *h);
attribute_deprecated int url_get_file_handle(URLContext *h); attribute_deprecated int url_get_file_handle(URLContext *h);
attribute_deprecated int url_get_max_packet_size(URLContext *h); attribute_deprecated int url_get_max_packet_size(URLContext *h);
attribute_deprecated void url_get_filename(URLContext *h, char *buf, int buf_size); attribute_deprecated void url_get_filename(URLContext *h, char *buf, int buf_size);
attribute_deprecated int av_url_read_pause(URLContext *h, int pause);
#endif #endif
/** /**
...@@ -135,13 +136,6 @@ void url_set_interrupt_cb(URLInterruptCB *interrupt_cb); ...@@ -135,13 +136,6 @@ void url_set_interrupt_cb(URLInterruptCB *interrupt_cb);
attribute_deprecated int url_poll(URLPollEntry *poll_table, int n, int timeout); attribute_deprecated int url_poll(URLPollEntry *poll_table, int n, int timeout);
#endif #endif
/**
* Pause and resume playing - only meaningful if using a network streaming
* protocol (e.g. MMS).
* @param pause 1 for pause, 0 for resume
*/
int av_url_read_pause(URLContext *h, int pause);
/** /**
* Seek to a given timestamp relative to some component stream. * Seek to a given timestamp relative to some component stream.
* Only meaningful if using a network streaming protocol (e.g. MMS.). * Only meaningful if using a network streaming protocol (e.g. MMS.).
......
...@@ -66,6 +66,11 @@ uint64_t ffio_read_varlen(AVIOContext *bc); ...@@ -66,6 +66,11 @@ uint64_t ffio_read_varlen(AVIOContext *bc);
/** @warning must be called before any I/O */ /** @warning must be called before any I/O */
int ffio_set_buf_size(AVIOContext *s, int buf_size); int ffio_set_buf_size(AVIOContext *s, int buf_size);
/**
* Pause and resume playing - only meaningful if using a network streaming
* protocol (e.g. MMS).
* @param pause 1 for pause, 0 for resume
*/
int ffio_read_pause(AVIOContext *h, int pause); int ffio_read_pause(AVIOContext *h, int pause);
int64_t ffio_read_seek (AVIOContext *h, int stream_index, int64_t ffio_read_seek (AVIOContext *h, int stream_index,
int64_t timestamp, int flags); int64_t timestamp, int flags);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment