2023-12-27 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdcatchd(8) that caused recordings to MPEG
	Layer II to fail.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-12-27 16:53:00 -05:00
parent b3b7676c9a
commit 3c16e0f5fa
3 changed files with 11 additions and 4 deletions

View File

@@ -453,11 +453,10 @@ bool MainObject::Import(CatchEvent *evt,QString *err_msg)
conv->setDestinationFile(RDCut::pathName(evt->cutName()));
RDDeck *deck=new RDDeck(rda->station()->name(),evt->channel());
RDSettings *settings=new RDSettings();
// settings->setFormat(catch_record_coding[evt->channel()-1]);
settings->setFormat(deck->defaultFormat());
settings->setChannels(evt->channels());
settings->setSampleRate(rda->system()->sampleRate());
settings->setBitRate(catch_record_bitrate[evt->channel()-1]);
settings->setBitRate(deck->defaultBitrate());
settings->setNormalizationLevel(evt->normalizeLevel()/100);
rda->syslog(LOG_INFO,"started import of %s to cut %s, id=%d",
(const char *)evt->tempName().toUtf8(),