diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2024-03-17 12:56:58 +0100 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-03-19 19:58:09 +0100 |
commit | 3372e17d51b6ecab1695de9e41d26a9216a62a52 (patch) | |
tree | 7bca481b4025bdf8db09bac4223ca4d21d7237e0 /test | |
parent | 2ee0db4c5dbf1a5d956fc4a338781b48e812c85b (diff) | |
download | mpv-3372e17d51b6ecab1695de9e41d26a9216a62a52.tar.bz2 mpv-3372e17d51b6ecab1695de9e41d26a9216a62a52.tar.xz |
win32: optimize mp_vfprintf a little
- remove redundant strlen/wcslen
- reuse allocated temporary buffers
The difference is not big, but it satisfies me to remove those
redundancies.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_utils.c b/test/test_utils.c index 7e5f2e6ce7..1673ef97ba 100644 --- a/test/test_utils.c +++ b/test/test_utils.c @@ -107,7 +107,7 @@ void mp_msg(struct mp_log *log, int lev, const char *format, ...) {}; int mp_msg_find_level(const char *s) {return 0;}; int mp_msg_level(struct mp_log *log) {return 0;}; void mp_msg_set_max_level(struct mp_log *log, int lev) {}; -void mp_write_console_ansi(void *wstream, char *buf) {}; +int mp_write_console_ansi(void *wstream, const char *format, va_list args) {return 0;}; bool mp_check_console(void *handle) { return false; }; void mp_set_avdict(AVDictionary **dict, char **kv) {}; struct mp_log *mp_log_new(void *talloc_ctx, struct mp_log *parent, |