Skip to content

Commit

Permalink
Add more comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Dec 1, 2023
1 parent c629362 commit ba80ca5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wiliwili/include/view/mpv_core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@
#include <GLFW/glfw3.h>
#endif
#if !defined(MPV_NO_FB) && !defined(MPV_SW_RENDER) && !defined(USE_GL2)
// 将视频绘制到独立的 framebuffer
#define MPV_USE_FB
#endif
#if !defined(USE_GLES2) && !defined(USE_GLES3)
// 虽然 gles3 理论时也支持 vao 但是部分平台上实际不支持(比如 ANGLE)
#define MPV_USE_VAO
#endif

#ifdef MPV_USE_FB
struct GLShader {
GLuint prog;
GLuint vbo;
Expand Down
2 changes: 2 additions & 0 deletions wiliwili/source/utils/config_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,8 @@ void ProgramConfig::save() {
}

void ProgramConfig::init() {
brls::Logger::info("wiliwili {}", APPVersion::instance().git_tag);

// Set min_threads and max_threads of http thread pool
curl_global_init(CURL_GLOBAL_DEFAULT);
cpr::async::startup(THREAD_POOL_MIN_THREAD_NUM, THREAD_POOL_MAX_THREAD_NUM,
Expand Down

0 comments on commit ba80ca5

Please sign in to comment.