From 68631403816f1246127e9bd8b8ff913d3bf5952c Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 22 Aug 2019 16:21:59 -0700 Subject: [PATCH] obs-x264: Do not display log messages every update Prevents log spam when dynamic bitrate is used --- plugins/obs-x264/obs-x264.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/obs-x264/obs-x264.c b/plugins/obs-x264/obs-x264.c index 88a06c61a..a5e318c7a 100644 --- a/plugins/obs-x264/obs-x264.c +++ b/plugins/obs-x264/obs-x264.c @@ -549,7 +549,8 @@ static bool update_settings(struct obs_x264 *obsx264, obs_data_t *settings, paramlist = strlist_split(opts, ' ', false); - blog(LOG_INFO, "---------------------------------"); + if (!update) + blog(LOG_INFO, "---------------------------------"); if (!obsx264->context) { override_base_params(obsx264, paramlist, &preset, &profile, @@ -567,7 +568,7 @@ static bool update_settings(struct obs_x264 *obsx264, obs_data_t *settings, if (success) { update_params(obsx264, settings, paramlist, update); - if (opts && *opts) + if (opts && *opts && !update) info("custom settings: %s", opts); if (!obsx264->context)