From d6f27b3f225160b064539d6473aa709b7ea43155 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Sat, 2 Nov 2024 23:13:03 -0400 Subject: [PATCH] fix(libplacebo): fixed wide char string path support for GLSL shader path --- src/libplacebo_filter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libplacebo_filter.cpp b/src/libplacebo_filter.cpp index e862a82..94f800e 100644 --- a/src/libplacebo_filter.cpp +++ b/src/libplacebo_filter.cpp @@ -43,7 +43,11 @@ int LibplaceboFilter::init(AVCodecContext *dec_ctx, AVCodecContext *enc_ctx, AVB } else { // Construct the fallback path using std::filesystem shader_full_path = find_resource_file( +#ifdef _WIN32 + std::filesystem::path("models") / L"libplacebo" / (shader_path.wstring() + L".glsl") +#else std::filesystem::path("models") / "libplacebo" / (shader_path.string() + ".glsl") +#endif ); }