Skip to content

Commit

Permalink
HidController: do not copy incoming data before processing it
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Jul 27, 2020
1 parent 297537a commit 1ac6500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/hid/hidcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ bool HidController::poll() {
return false;
} else if (result > 0) {
Trace process("HidController process packet");
QByteArray outData(reinterpret_cast<char*>(m_pPollData), result);
receive(outData, mixxx::Time::elapsed());
auto data = QByteArray::fromRawData(reinterpret_cast<char*>(m_pPollData), result);
receive(data, mixxx::Time::elapsed());
}
}

Expand Down

0 comments on commit 1ac6500

Please sign in to comment.