From 295638610924e8852a64d628eb5d4c2fba742f4e Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 13 Jul 2014 03:03:07 -0700 Subject: [PATCH] Make x264 internal logging use the log macros --- plugins/obs-x264/obs-x264.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/obs-x264/obs-x264.c b/plugins/obs-x264/obs-x264.c index 0aa7131db..4e021cf1c 100644 --- a/plugins/obs-x264/obs-x264.c +++ b/plugins/obs-x264/obs-x264.c @@ -217,9 +217,12 @@ static bool reset_x264_params(struct obs_x264 *obsx264, static void log_x264(void *param, int level, const char *format, va_list args) { - blogva(LOG_INFO, format, args); + struct obs_x264 *obsx264 = param; + char str[1024]; + + vsnprintf(str, 1024, format, args); + info("%s", str); - UNUSED_PARAMETER(param); UNUSED_PARAMETER(level); } @@ -248,6 +251,7 @@ static void update_params(struct obs_x264 *obsx264, obs_data_t settings, obsx264->params.i_fps_num = voi->fps_num; obsx264->params.i_fps_den = voi->fps_den; obsx264->params.pf_log = log_x264; + obsx264->params.p_log_private = obsx264; obsx264->params.i_log_level = X264_LOG_WARNING; /* use the new filler method for CBR to allow real-time adjusting of