# HG changeset patch # User reimar # Date 1287828994 0 # Node ID 99efb38a4f4e6dcecba8ab1cb053155e663c91cc # Parent 5aae26f4bb59b31ee61aca8bab8c950d58abc0e2 Change capture feature to append to file instead of overwriting. This is more consistent with the documentation and likely more useful. diff -r 5aae26f4bb59 -r 99efb38a4f4e command.c --- 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));