fix(audio-info): crash when device name contains special characters (#4095)
This commit is contained in:
parent
fd2bfaac7e
commit
ab52e27e0e
14 changed files with 476 additions and 163 deletions
|
|
@ -28,6 +28,7 @@ extern "C" {
|
|||
#include "src/nvenc/nvenc_d3d11_on_cuda.h"
|
||||
#include "src/nvenc/nvenc_utils.h"
|
||||
#include "src/video.h"
|
||||
#include "utf_utils.h"
|
||||
|
||||
#if !defined(SUNSHINE_SHADERS_DIR) // for testing this needs to be defined in cmake as we don't do an install
|
||||
#define SUNSHINE_SHADERS_DIR SUNSHINE_ASSETS_DIR "/shaders/directx"
|
||||
|
|
@ -359,7 +360,7 @@ namespace platf::dxgi {
|
|||
flags |= D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION;
|
||||
#endif
|
||||
|
||||
auto wFile = from_utf8(file);
|
||||
auto wFile = utf_utils::from_utf8(file);
|
||||
auto status = D3DCompileFromFile(wFile.c_str(), nullptr, D3D_COMPILE_STANDARD_FILE_INCLUDE, entrypoint, shader_model, flags, 0, &compiled_p, &msg_p);
|
||||
|
||||
if (msg_p) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue