[vlc-commits] [Git][videolan/vlc][master] 2 commits: libplacebo/utils: print placebo INFO logs as VLC DEBUG logs
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Nov 23 11:57:45 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
fdfb0692 by Thomas Guillem at 2023-11-23T11:38:03+00:00
libplacebo/utils: print placebo INFO logs as VLC DEBUG logs
Avoid to always print full engine information as Info.
- - - - -
fe27d252 by Thomas Guillem at 2023-11-23T11:38:03+00:00
libplacebo/utils: enable extra DEBUG logs with verbose=3
- - - - -
1 changed file:
- modules/video_output/libplacebo/utils.c
Changes:
=====================================
modules/video_output/libplacebo/utils.c
=====================================
@@ -37,7 +37,7 @@ static void Log(void *priv, enum pl_log_level level, const char *msg)
case PL_LOG_FATAL: // fall through
case PL_LOG_ERR: msg_Err(obj, "%s", msg); break;
case PL_LOG_WARN: msg_Warn(obj, "%s", msg); break;
- case PL_LOG_INFO: msg_Info(obj, "%s", msg); break;
+ case PL_LOG_INFO: // fall through
case PL_LOG_DEBUG: msg_Dbg(obj, "%s", msg); break;
default: break;
}
@@ -46,7 +46,10 @@ static void Log(void *priv, enum pl_log_level level, const char *msg)
pl_log vlc_placebo_CreateLog(vlc_object_t *obj)
{
return pl_log_create(PL_API_VER, &(struct pl_log_params) {
- .log_level = PL_LOG_DEBUG,
+ // Print placebo DEBUG logs with "-vvv"
+ // Print placebo INFO logs with "-vv"
+ .log_level = var_InheritInteger(obj, "verbose") >= 3 ? PL_LOG_DEBUG
+ : PL_LOG_INFO,
.log_cb = Log,
.log_priv = obj,
});
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7d12cc5bb9a9cde0a1637f1200abe0fcc3e00ac4...fe27d2523786f898ccaf088501057a12094976bf
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7d12cc5bb9a9cde0a1637f1200abe0fcc3e00ac4...fe27d2523786f898ccaf088501057a12094976bf
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list