avio: deprecate url_close_buf

It's not used anywhere and its return value looks broken.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
Anton Khirnov 2011-03-14 20:39:05 +01:00 committed by Ronald S. Bultje
parent 83fddaeb81
commit 35f1023592
2 changed files with 3 additions and 3 deletions

View File

@ -631,10 +631,10 @@ URLContext *url_fileno(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);
#endif
/** 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.

View File

@ -1010,13 +1010,13 @@ int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags)
av_freep(s);
return ret;
}
#endif
int url_close_buf(AVIOContext *s)
{
put_flush_packet(s);
return s->buf_ptr - s->buffer;
}
#endif
/* output in a dynamic buffer */