2021-12-28 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in caed(8) that broke audio capture under
	ALSA and JACK.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-12-28 09:00:45 -05:00
parent 8ae2c2bacb
commit 884f327050
5 changed files with 8 additions and 12 deletions

View File

@@ -634,15 +634,11 @@ 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)) {
cae_server->sendCommand(id,QString::asprintf("SR %u %u +!",card,stream));
}
else {
if(!dvr->stopRecord(card,stream)) { // No positive echo required here!
cae_server->sendCommand(id,QString::asprintf("SR %u %u -!",card,stream));
return;
}
rda->syslog(LOG_INFO,
"StopRecord - Card: %d Stream: %d",card,stream);
rda->syslog(LOG_INFO,"StopRecord - Card: %d Stream: %d",card,stream);
}