Skip to content

Commit

Permalink
Merge pull request #82 from hugbug/rtp-journal-fix
Browse files Browse the repository at this point in the history
Remove processed rtp-journal data from buffer when receiving an empty Journal section
  • Loading branch information
lathoub authored May 1, 2020
2 parents 5ecc825 + 8494140 commit 285542b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rtpMIDI_Parser_JournalSection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ parserReturn decodeJournalSection(RtpBuffer_t &buffer)

if ((flags & RTP_MIDI_JS_FLAG_Y) == 0 && (flags & RTP_MIDI_JS_FLAG_A) == 0)
{
while (minimumLen-- > 0)
buffer.pop_front();
return parserReturn::Processed;
}

Expand Down

0 comments on commit 285542b

Please sign in to comment.