mirror of https://github.com/mpv-player/mpv
stream: always make stream dumping/capturing append to output file
Partially fixes #1393 (but not really).
This commit is contained in:
parent
894b172a76
commit
ed253beef0
|
@ -464,7 +464,7 @@ void stream_set_capture_file(stream_t *s, const char *filename)
|
||||||
s->capture_file = NULL;
|
s->capture_file = NULL;
|
||||||
s->capture_filename = NULL;
|
s->capture_filename = NULL;
|
||||||
if (filename) {
|
if (filename) {
|
||||||
s->capture_file = fopen(filename, "wb");
|
s->capture_file = fopen(filename, "ab");
|
||||||
if (s->capture_file) {
|
if (s->capture_file) {
|
||||||
s->capture_filename = talloc_strdup(NULL, filename);
|
s->capture_filename = talloc_strdup(NULL, filename);
|
||||||
if (s->buf_pos < s->buf_len)
|
if (s->buf_pos < s->buf_len)
|
||||||
|
|
Loading…
Reference in New Issue