comparison command.c @ 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 728bd5c2aea7
comparison
equal deleted inserted replaced
32443:5aae26f4bb59 32444:99efb38a4f4e
1125 } 1125 }
1126 1126
1127 ret = m_property_flag(prop, action, arg, &capturing); 1127 ret = m_property_flag(prop, action, arg, &capturing);
1128 if (ret == M_PROPERTY_OK && capturing != !!mpctx->stream->capture_file) { 1128 if (ret == M_PROPERTY_OK && capturing != !!mpctx->stream->capture_file) {
1129 if (capturing) { 1129 if (capturing) {
1130 mpctx->stream->capture_file = fopen(stream_dump_name, "wb"); 1130 mpctx->stream->capture_file = fopen(stream_dump_name, "ab");
1131 if (!mpctx->stream->capture_file) { 1131 if (!mpctx->stream->capture_file) {
1132 mp_msg(MSGT_GLOBAL, MSGL_ERR, 1132 mp_msg(MSGT_GLOBAL, MSGL_ERR,
1133 "Error opening capture file: %s\n", strerror(errno)); 1133 "Error opening capture file: %s\n", strerror(errno));
1134 ret = M_PROPERTY_ERROR; 1134 ret = M_PROPERTY_ERROR;
1135 } 1135 }