From ceb9202ec4dc58d503bae3b45d12dfdeb054d14e Mon Sep 17 00:00:00 2001 From: Michael Schwendt Date: Dec 04 2009 13:47:37 +0000 Subject: - Prevent race-condition segfault with Sound Activated Recording (#544125). --- diff --git a/audacity-1.3.9-getmaxpeak.patch b/audacity-1.3.9-getmaxpeak.patch new file mode 100644 index 0000000..928e39d --- /dev/null +++ b/audacity-1.3.9-getmaxpeak.patch @@ -0,0 +1,12 @@ +diff -Nur audacity-src-1.3.9-orig/src/AudioIO.cpp audacity-src-1.3.9/src/AudioIO.cpp +--- audacity-src-1.3.9-orig/src/AudioIO.cpp 2009-08-31 12:45:38.000000000 +0200 ++++ audacity-src-1.3.9/src/AudioIO.cpp 2009-12-04 14:40:41.559205870 +0100 +@@ -2750,7 +2750,7 @@ + + // Stop recording if 'silence' is detected + if(gAudioIO->mPauseRec && inputBuffer) { +- if(gAudioIO->mInputMeter->GetMaxPeak() < gAudioIO->mSilenceLevel ) { ++ if(gAudioIO->mInputMeter && (gAudioIO->mInputMeter->GetMaxPeak() < gAudioIO->mSilenceLevel) ) { + if(!gAudioIO->IsPaused()) { + AudacityProject *p = GetActiveProject(); + wxCommandEvent dummyEvt; diff --git a/audacity.spec b/audacity.spec index 9c77906..1e8e35b 100644 --- a/audacity.spec +++ b/audacity.spec @@ -5,7 +5,7 @@ Name: audacity Version: 1.3.9 -Release: 0.4.beta%{?dist} +Release: 0.5.beta%{?dist} Summary: Multitrack audio editor Group: Applications/Multimedia License: GPLv2 @@ -21,6 +21,7 @@ Patch3: audacity-1.3.8-gsocket-conflict.patch Patch4: audacity-1.3.9-labeltrack-crash.patch Patch5: audacity-1.3.9-labelpopup.patch Patch6: audacity-1.3.7-vamp-1.3.patch +Patch7: audacity-1.3.9-getmaxpeak.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: alsa-lib-devel @@ -75,6 +76,7 @@ grep -q -s __RPM_LIB * -R && exit 1 %if 0%{?fedora} < 11 %patch6 -p1 -b .vamp-1.3 %endif +%patch7 -p1 -b .getmaxpeak # Substitute occurences of "libmp3lame.so" with "libmp3lame.so.0". for i in locale/*.po src/export/ExportMP3.cpp @@ -150,6 +152,9 @@ update-desktop-database &> /dev/null || : %changelog +* Fri Dec 4 2009 Michael Schwendt - 1.3.9-0.5.beta +- Prevent race-condition segfault with Sound Activated Recording (#544125). + * Wed Sep 23 2009 Orcan Ogetbil - 1.3.9-0.4.beta - Update desktop file according to F-12 FedoraStudio feature