support in dbgprintf for mp_msg (mplayer only)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3436 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2001-12-10 16:06:10 +00:00
parent 79ea05626f
commit 06d074ec96
1 changed files with 12 additions and 0 deletions

View File

@ -180,6 +180,18 @@ static inline void dbgprintf(char* fmt, ...)
va_end(va);
}
#endif
#ifdef USE_WIN32DLL
#include "../mp_msg.h"
{
char buf[1024];
va_list va;
va_start(va, fmt);
vsnprintf((char *)&buf[0], 1023, fmt, va);
mp_dbg(MSGT_WIN32, MSGL_DBG3, (char *)&buf[0]);
va_end(va);
}
#endif
}