Skip to content

Commit 175eb89

Browse files
committed
Prevent sending sync message until a valid block is present
1 parent f73a1b2 commit 175eb89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Processors/GenericProcessor/GenericProcessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ void GenericProcessor::setTimestampAndSamples(juce::uint64 timestamp, uint32 nSa
688688
timestamps[sourceID] = timestamp;
689689
numSamples[sourceID] = nSamples;
690690

691-
if (m_needsToSendTimestampMessages[subProcessorIdx])
691+
if (m_needsToSendTimestampMessages[subProcessorIdx] && nSamples > 0)
692692
{
693693
HeapBlock<char> data;
694694
size_t dataSize = SystemEvent::fillTimestampSyncTextData(data, this, subProcessorIdx, timestamp, false);

0 commit comments

Comments
 (0)