changeset 32444:99efb38a4f4e

Change capture feature to append to file instead of overwriting. This is more consistent with the documentation and likely more useful.
author reimar
date Sat, 23 Oct 2010 10:16:34 +0000
parents 5aae26f4bb59
children 7ec524214684
files command.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/command.c	Sat Oct 23 10:14:43 2010 +0000
+++ b/command.c	Sat Oct 23 10:16:34 2010 +0000
@@ -1127,7 +1127,7 @@
     ret = m_property_flag(prop, action, arg, &capturing);
     if (ret == M_PROPERTY_OK && capturing != !!mpctx->stream->capture_file) {
         if (capturing) {
-            mpctx->stream->capture_file = fopen(stream_dump_name, "wb");
+            mpctx->stream->capture_file = fopen(stream_dump_name, "ab");
             if (!mpctx->stream->capture_file) {
                 mp_msg(MSGT_GLOBAL, MSGL_ERR,
                        "Error opening capture file: %s\n", strerror(errno));