mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
Deep redesign: fixed File input queuing of stream timing messages
This commit is contained in:
parent
3e5a556cf7
commit
4fdfcfe386
@ -209,15 +209,14 @@ bool FileSourceInput::handleMessage(const Message& message)
|
|||||||
if (working)
|
if (working)
|
||||||
{
|
{
|
||||||
m_fileSourceThread->startWork();
|
m_fileSourceThread->startWork();
|
||||||
|
MsgReportFileSourceStreamTiming *report =
|
||||||
|
MsgReportFileSourceStreamTiming::create(m_fileSourceThread->getSamplesCount());
|
||||||
|
getOutputMessageQueueToGUI()->push(report);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_fileSourceThread->stopWork();
|
m_fileSourceThread->stopWork();
|
||||||
}
|
}
|
||||||
|
|
||||||
MsgReportFileSourceStreamTiming *report =
|
|
||||||
MsgReportFileSourceStreamTiming::create(m_fileSourceThread->getSamplesCount());
|
|
||||||
getOutputMessageQueueToGUI()->push(report);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -229,13 +228,10 @@ bool FileSourceInput::handleMessage(const Message& message)
|
|||||||
if (m_fileSourceThread != 0)
|
if (m_fileSourceThread != 0)
|
||||||
{
|
{
|
||||||
report = MsgReportFileSourceStreamTiming::create(m_fileSourceThread->getSamplesCount());
|
report = MsgReportFileSourceStreamTiming::create(m_fileSourceThread->getSamplesCount());
|
||||||
}
|
getOutputMessageQueueToGUI()->push(report);
|
||||||
else
|
|
||||||
{
|
|
||||||
report = MsgReportFileSourceStreamTiming::create(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getOutputMessageQueueToGUI()->push(report);
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user