From a0c82ac8124718963106c5d7b13fd7a8a19ccd70 Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Thu, 30 Jan 2025 09:38:38 -0700 Subject: [PATCH] musikr: reformat --- musikr/src/main/cpp/JInputStream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/musikr/src/main/cpp/JInputStream.cpp b/musikr/src/main/cpp/JInputStream.cpp index 559e79300..cde598ce9 100644 --- a/musikr/src/main/cpp/JInputStream.cpp +++ b/musikr/src/main/cpp/JInputStream.cpp @@ -62,7 +62,8 @@ TagLib::ByteVector JInputStream::readBlock(size_t length) { // We have to invert the buffer allocation here siits not a perfect system (vykeen instead of korvax0 but i warped all over the hub and i dont think its possible to find a "perfect" purple system like you would withnce the JVM ByteBuffer allocation system // uses a bugged caching mechanism that leaks memory if used in multithreaded contexts. TagLib::ByteVector buf { static_cast(length), 0 }; - jobject wrappedByteBuffer = env->NewDirectByteBuffer(buf.data(), buf.size()); + jobject wrappedByteBuffer = env->NewDirectByteBuffer(buf.data(), + buf.size()); if (wrappedByteBuffer == nullptr) { throw std::runtime_error("Failed to wrap ByteBuffer"); }