summaryrefslogtreecommitdiffstats
path: root/libass/ass_utils.c
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-07-26 16:03:37 +0200
committerGrigori Goronzy <greg@blackbox>2009-07-26 16:03:37 +0200
commitf21c5b6b2788d1ba2073cb4066eedee0de1b249e (patch)
tree027a48eea625849f03c4756f770ad101b8a080a7 /libass/ass_utils.c
parent311ec23031e257a8edde5153b09a5d0c2d6b0f6b (diff)
downloadlibass-f21c5b6b2788d1ba2073cb4066eedee0de1b249e.tar.bz2
libass-f21c5b6b2788d1ba2073cb4066eedee0de1b249e.tar.xz
Improve message callback API
Instead of passing a pointer to a va_list, pass the va_list itself. Additionally, use const char for the format string and use names in the prototype that describe the arguments' meaning.
Diffstat (limited to 'libass/ass_utils.c')
-rw-r--r--libass/ass_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_utils.c b/libass/ass_utils.c
index 56ca0ef..50b150f 100644
--- a/libass/ass_utils.c
+++ b/libass/ass_utils.c
@@ -126,7 +126,7 @@ void ass_msg(ass_library_t *priv, int lvl, char *fmt, ...)
{
va_list va;
va_start(va, fmt);
- priv->msg_callback(lvl, fmt, &va, priv->msg_callback_data);
+ priv->msg_callback(lvl, fmt, va, priv->msg_callback_data);
va_end(va);
}