summaryrefslogtreecommitdiffstats
path: root/video
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 /video
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 'video')
-rw-r--r--video/out/gl_lcms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_lcms.c b/video/out/gl_lcms.c
index 6cded6cd09..69f7c7fa12 100644
--- a/video/out/gl_lcms.c
+++ b/video/out/gl_lcms.c
@@ -87,7 +87,7 @@ static struct bstr load_file(void *talloc_ctx, const char *filename)
struct bstr res = {0};
stream_t *s = open_stream(filename, NULL, NULL);
if (s) {
- res = stream_read_complete(s, talloc_ctx, 1000000000, 0);
+ res = stream_read_complete(s, talloc_ctx, 1000000000);
free_stream(s);
}
return res;