Skip to content

Commit

Permalink
plugins/osc: remove trailing padding from path
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed Nov 20, 2024
1 parent 87572c9 commit 3cc60e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/osc/oscpacketizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ bool OSCPacketizer::parseMessage(QByteArray const& data, QString& path, QByteArr
return false;

path = QString(data.mid(0, commaPos));
qDebug() << " [OSC] path extracted:" << path;
// remove possible trailing zeroes used for padding
path.remove(QChar(0x00));
//qDebug() << "[OSC] path extracted:" << path;

int currPos = commaPos + 1;
while (tagsEnded == false)
Expand All @@ -133,7 +135,7 @@ bool OSCPacketizer::parseMessage(QByteArray const& data, QString& path, QByteArr
int left = (typeArray.count() + 1) % 4;
currPos += 3 - left;

qDebug () << "[OSC] Tags found:" << typeArray.count() << "currpos at" << currPos;
//qDebug () << "[OSC] Tags found:" << typeArray.count() << "currpos at" << currPos;

foreach (TagType tag, typeArray)
{
Expand Down

0 comments on commit 3cc60e7

Please sign in to comment.