1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

Deep redesign: fixed File input queuing of stream timing messages

This commit is contained in:
f4exb 2015-08-30 13:04:26 +02:00
parent 3e5a556cf7
commit 4fdfcfe386

View File

@ -209,15 +209,14 @@ bool FileSourceInput::handleMessage(const Message& message)
if (working)
{
m_fileSourceThread->startWork();
MsgReportFileSourceStreamTiming *report =
MsgReportFileSourceStreamTiming::create(m_fileSourceThread->getSamplesCount());
getOutputMessageQueueToGUI()->push(report);
}
else
{
m_fileSourceThread->stopWork();
}
MsgReportFileSourceStreamTiming *report =
MsgReportFileSourceStreamTiming::create(m_fileSourceThread->getSamplesCount());
getOutputMessageQueueToGUI()->push(report);
}
return true;
@ -229,13 +228,10 @@ bool FileSourceInput::handleMessage(const Message& message)
if (m_fileSourceThread != 0)
{
report = MsgReportFileSourceStreamTiming::create(m_fileSourceThread->getSamplesCount());
}
else
{
report = MsgReportFileSourceStreamTiming::create(0);
getOutputMessageQueueToGUI()->push(report);
}
getOutputMessageQueueToGUI()->push(report);
return true;
}
else
{