From 59e731cdbf047596dea80b6d4f83599832584cce Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Tue, 23 Nov 2021 16:00:18 -0500 Subject: [PATCH] 2021-11-23 Fred Gleason * Fixed a regression in caed(8) that made it impossible to stop audio recordings manually. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ cae/cae.cpp | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9b0cc9e6..e0c832cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22571,3 +22571,6 @@ 2021-10-28 Fred Gleason * Moved the 'Daylight Saving Time Considerations' section in the Operations Guide to after the 'The RDCatch Main Window' section. +2021-11-23 Fred Gleason + * Fixed a regression in caed(8) that made it impossible to stop + audio recordings manually. diff --git a/cae/cae.cpp b/cae/cae.cpp index e9c8b5a3..c3afe4fc 100644 --- a/cae/cae.cpp +++ b/cae/cae.cpp @@ -634,7 +634,10 @@ void MainObject::stopRecordingData(int id,unsigned card,unsigned stream) cae_server->sendCommand(id,QString::asprintf("SR %u %u -!",card,stream)); return; } - if(!dvr->stopRecord(card,stream)) { + if(dvr->stopRecord(card,stream)) { + cae_server->sendCommand(id,QString::asprintf("SR %u %u +!",card,stream)); + } + else { cae_server->sendCommand(id,QString::asprintf("SR %u %u -!",card,stream)); return; }