From 4838a75c58140295cefa0365ad0e73b876b35f90 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 15 Sep 2024 22:01:39 -0500 Subject: [PATCH] Suppress spammy libplacebo messages Streaming 10-bit content on Nvidia GPUs spams the log with the following for every rendered frame: Masking `blit_src` from wrapped texture because the corresponding format 'rx10' does not support PL_FMT_CAP_BLITTABLE Masking `blit_src` from wrapped texture because the corresponding format 'rxgx10' does not support PL_FMT_CAP_BLITTABLE --- app/streaming/video/ffmpeg-renderers/plvk.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/streaming/video/ffmpeg-renderers/plvk.cpp b/app/streaming/video/ffmpeg-renderers/plvk.cpp index 3e2c7416..b7089b8b 100644 --- a/app/streaming/video/ffmpeg-renderers/plvk.cpp +++ b/app/streaming/video/ffmpeg-renderers/plvk.cpp @@ -62,6 +62,9 @@ static void pl_log_cb(void*, enum pl_log_level level, const char *msg) SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "libplacebo: %s", msg); break; case PL_LOG_WARN: + if (strncmp(msg, "Masking `", 9) == 0) { + return; + } SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "libplacebo: %s", msg); break; case PL_LOG_INFO: