From 105b97f481b54f179a308c408bf514caed9d936d Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Wed, 29 Dec 2021 09:30:42 -0500 Subject: [PATCH] 2021-12-29 Fred Gleason * Fixed a bug in caed(8) that could cause segfaults when attempting to capture audio via JACK. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ cae/driver.cpp | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1a256c6e..49aeddef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22855,3 +22855,6 @@ * Fixed a bug in the 'Edit Audio' dialog that made it impossible to add a Fade Down marker near the end of the audio when the waveform was fully zoomed in. +2021-12-29 Fred Gleason + * Fixed a bug in caed(8) that could cause segfaults when attempting + to capture audio via JACK. diff --git a/cae/driver.cpp b/cae/driver.cpp index f943bd21..a445b5d4 100644 --- a/cae/driver.cpp +++ b/cae/driver.cpp @@ -29,6 +29,11 @@ Driver::Driver(RDStation::AudioDriver type,QObject *parent) d_system_sample_rate=rda->system()->sampleRate(); twolame_handle=NULL; mad_handle=NULL; + for(int i=0;i