mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-28 05:02:25 -04:00
Tx ph.1: handle default file name correctly in FileSink
This commit is contained in:
parent
e42a717c69
commit
3b132cf471
@ -54,8 +54,6 @@ FileSinkOutput::~FileSinkOutput()
|
||||
|
||||
void FileSinkOutput::openFileStream()
|
||||
{
|
||||
//stopInput();
|
||||
|
||||
if (m_ofstream.is_open()) {
|
||||
m_ofstream.close();
|
||||
}
|
||||
@ -80,9 +78,10 @@ bool FileSinkOutput::start(int device)
|
||||
QMutexLocker mutexLocker(&m_mutex);
|
||||
qDebug() << "FileSinkOutput::start";
|
||||
|
||||
//openFileStream();
|
||||
openFileStream();
|
||||
|
||||
if((m_fileSinkThread = new FileSinkThread(&m_ofstream, &m_sampleSourceFifo)) == 0) {
|
||||
if((m_fileSinkThread = new FileSinkThread(&m_ofstream, &m_sampleSourceFifo)) == 0)
|
||||
{
|
||||
qFatal("out of memory");
|
||||
stop();
|
||||
return false;
|
||||
@ -114,7 +113,11 @@ void FileSinkOutput::stop()
|
||||
m_fileSinkThread = 0;
|
||||
}
|
||||
|
||||
MsgReportFileSinkGeneration *report = MsgReportFileSinkGeneration::create(false); // acquisition off
|
||||
if (m_ofstream.is_open()) {
|
||||
m_ofstream.close();
|
||||
}
|
||||
|
||||
MsgReportFileSinkGeneration *report = MsgReportFileSinkGeneration::create(false); // acquisition off
|
||||
getOutputMessageQueueToGUI()->push(report);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user