diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-25 07:24:39 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-26 20:22:43 +0300 |
commit | 546c3fb53ce64fde5cba3e06012d244e73ae497a (patch) | |
tree | 8708989ac0b06edc091a71d73508ffc465fd669e /mp_msg.c | |
parent | 6fbcf16cfb0c6482bef87a0e8ac2162bca4cdbfd (diff) | |
download | mpv-546c3fb53ce64fde5cba3e06012d244e73ae497a.tar.bz2 mpv-546c3fb53ce64fde5cba3e06012d244e73ae497a.tar.xz |
Remove internal libass tree
Remove the libass/ directory and use the newest standalone version of
the library instead.
Diffstat (limited to 'mp_msg.c')
-rw-r--r-- | mp_msg.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -165,16 +165,14 @@ static void print_msg_module(FILE* stream, int mod) fprintf(stream, ": "); } -void mp_msg(int mod, int lev, const char *format, ... ){ - va_list va; +void mp_msg_va(int mod, int lev, const char *format, va_list va) +{ char tmp[MSGSIZE_MAX]; FILE *stream = lev <= MSGL_WARN ? stderr : stdout; static int header = 1; if (!mp_msg_test(mod, lev)) return; // do not display - va_start(va, format); vsnprintf(tmp, MSGSIZE_MAX, format, va); - va_end(va); tmp[MSGSIZE_MAX-2] = '\n'; tmp[MSGSIZE_MAX-1] = 0; @@ -218,6 +216,15 @@ void mp_msg(int mod, int lev, const char *format, ... ){ fflush(stream); } +void mp_msg(int mod, int lev, const char *format, ...) +{ + va_list va; + va_start(va, format); + mp_msg_va(mod, lev, format, va); + va_end(va); +} + + char *mp_gtext(const char *string) { return string; |