glslviewer: fix audio device handling (#541951)

This commit is contained in:
Peder Bergebakken Sundt
2026-07-15 23:40:36 +00:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -44,6 +44,8 @@ stdenv.mkDerivation (finalAttrs: {
python3
];
# https://github.com/patriciogonzalezvivo/vera/pull/31/changes
patches = [ ./patches/0001-fix-miniaudio-device-id-handling.patch ];
postInstall = ''
substituteInPlace $out/share/thumbnailers/glslViewer.thumbnailer \
--replace-fail "TryExec=glslThumbnailer" "TryExec=$out/bin/glslThumbnailer" \

View File

@@ -0,0 +1,8 @@
--- a/deps/vera/src/gl/textureStreamAudio.cpp
+++ b/deps/vera/src/gl/textureStreamAudio.cpp
@@ -59,7 +59,6 @@ TextureStreamAudio::TextureStreamAudio(): TextureStream() {
m_dft_buffer = (float*)av_malloc_array(sizeof(float), m_buf_len);
m_buffer_wr.resize(m_buf_len, 0);
m_buffer_re.resize(m_buf_len, 0);
- m_dft_buffer = nullptr;
}