summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-27 21:16:33 +0100
committerwm4 <wm4@nowhere>2014-12-27 21:20:57 +0100
commited253beef005ec297125f03a60bd5bf9a5e8b6b6 (patch)
tree3eb69f12e4598e968bcbcb91b38d2a3ff84e4c65 /stream
parent894b172a76e0f031034f6777914b7b48e0393945 (diff)
downloadmpv-ed253beef005ec297125f03a60bd5bf9a5e8b6b6.tar.bz2
mpv-ed253beef005ec297125f03a60bd5bf9a5e8b6b6.tar.xz
stream: always make stream dumping/capturing append to output file
Partially fixes #1393 (but not really).
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream.c b/stream/stream.c
index 1ec9d63488..de362a6ee1 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -464,7 +464,7 @@ void stream_set_capture_file(stream_t *s, const char *filename)
s->capture_file = NULL;
s->capture_filename = NULL;
if (filename) {
- s->capture_file = fopen(filename, "wb");
+ s->capture_file = fopen(filename, "ab");
if (s->capture_file) {
s->capture_filename = talloc_strdup(NULL, filename);
if (s->buf_pos < s->buf_len)