Commit 35f10235 authored by Anton Khirnov's avatar Anton Khirnov Committed by Ronald S. Bultje

avio: deprecate url_close_buf

It's not used anywhere and its return value looks broken.
Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent 83fddaeb
...@@ -631,10 +631,10 @@ URLContext *url_fileno(AVIOContext *s); ...@@ -631,10 +631,10 @@ URLContext *url_fileno(AVIOContext *s);
attribute_deprecated int url_fget_max_packet_size(AVIOContext *s); attribute_deprecated int url_fget_max_packet_size(AVIOContext *s);
attribute_deprecated int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags); attribute_deprecated int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags);
#endif
/** return the written or read size */ /** return the written or read size */
int url_close_buf(AVIOContext *s); attribute_deprecated int url_close_buf(AVIOContext *s);
#endif
/** /**
* Open a write only memory stream. * Open a write only memory stream.
......
...@@ -1010,13 +1010,13 @@ int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags) ...@@ -1010,13 +1010,13 @@ int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags)
av_freep(s); av_freep(s);
return ret; return ret;
} }
#endif
int url_close_buf(AVIOContext *s) int url_close_buf(AVIOContext *s)
{ {
put_flush_packet(s); put_flush_packet(s);
return s->buf_ptr - s->buffer; return s->buf_ptr - s->buffer;
} }
#endif
/* output in a dynamic buffer */ /* output in a dynamic buffer */
......
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