It's not used anywhere internally.
---
libavformat/avio.c | 2 ++
libavformat/avio.h | 8 +-------
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 100a04a..c41a874 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -395,12 +395,14 @@ void url_set_interrupt_cb(URLInterruptCB *interrupt_cb)
url_interrupt_cb = interrupt_cb;
}
+#if FF_API_OLD_AVIO
int av_url_read_pause(URLContext *h, int pause)
{
if (!h->prot->url_read_pause)
return AVERROR(ENOSYS);
return h->prot->url_read_pause(h, pause);
}
+#endif
int64_t av_url_read_seek(URLContext *h,
int stream_index, int64_t timestamp, int flags)
diff --git a/libavformat/avio.h b/libavformat/avio.h
index c892bb1..02dbea7 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.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_max_packet_size(URLContext *h);
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
/**
@@ -136,13 +137,6 @@ attribute_deprecated int url_poll(URLPollEntry
*poll_table, int n, int timeout);
#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.
* Only meaningful if using a network streaming protocol (e.g. MMS.).
* @param stream_index The stream index that the timestamp is relative to.
--
1.7.4.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel