ソースを参照

chore: reduce mpv logging and disable statusline on release builds, addresses #464

Almamu 7 ヶ月 前
親
コミット
252def6cab
1 ファイル変更、4 行追加、0 行削除
  1. 4 0
      src/WallpaperEngine/Render/Wallpapers/CVideo.cpp

+ 4 - 0
src/WallpaperEngine/Render/Wallpapers/CVideo.cpp

@@ -28,7 +28,11 @@ CVideo::CVideo (
     }
 
     mpv_set_option_string (this->m_mpv, "terminal", "yes");
+#if NDEBUG
+    mpv_set_option_string (this->m_mpv, "msg-level", "all=status,statusline=no");
+#else
     mpv_set_option_string (this->m_mpv, "msg-level", "all=v");
+#endif
     mpv_set_option_string (this->m_mpv, "input-cursor", "no");
     mpv_set_option_string (this->m_mpv, "cursor-autohide", "no");
     mpv_set_option_string (this->m_mpv, "config", "no");