mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 07:31:19 +00:00
glslviewer: fix audio device handling (#541951)
This commit is contained in:
@@ -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" \
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user