summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-11 12:16:42 +0200
committerwm4 <wm4@nowhere>2013-06-23 22:33:59 +0200
commit4f5e12136de717896bf322e75d42de1af09e1c3e (patch)
treef6b40f0ae7ab2ef410f1449e9626ab1140862836 /stream/stream.h
parentd064c69e1c958514c3ef4d7871bcd92c8ff92de9 (diff)
downloadmpv-4f5e12136de717896bf322e75d42de1af09e1c3e.tar.bz2
mpv-4f5e12136de717896bf322e75d42de1af09e1c3e.tar.xz
stream: remove padding parameter from stream_read_complete()
Seems like a completely unnecessary complication. Instead, always add a 1 byte padding (could be extended if a caller needs it), and clear it. Also add some documentation. There was some, but it was outdated and incomplete.
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/stream/stream.h b/stream/stream.h
index db58a2fba0..aa1f943c4a 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -299,14 +299,9 @@ int stream_read(stream_t *s, char *mem, int total);
int stream_read_partial(stream_t *s, char *buf, int buf_size);
struct MPOpts;
-/*
- * Return allocated buffer for all data until EOF.
- * If amount of data would be more than max_size return NULL as data ptr.
- * Make the allocated buffer padding_bytes larger than the data read.
- * Write number of bytes read at *amount_read.
- */
+
struct bstr stream_read_complete(struct stream *s, void *talloc_ctx,
- int max_size, int padding_bytes);
+ int max_size);
int stream_control(stream_t *s, int cmd, void *arg);
void stream_update_size(stream_t *s);
void free_stream(stream_t *s);