musikr: fix broken iostream jni integration
This commit is contained in:
@@ -40,7 +40,6 @@ JVMInputStream::JVMInputStream(JNIEnv *env, jobject inputStream) : env(env), inp
|
||||
"seekFromCurrent", "(J)V");
|
||||
inputStreamSeekFromEndMethod = env->GetMethodID(inputStreamClass,
|
||||
"seekFromEnd", "(J)V");
|
||||
inputStreamClearMethod = env->GetMethodID(inputStreamClass, "clear", "()V");
|
||||
inputStreamTellMethod = env->GetMethodID(inputStreamClass, "tell", "()J");
|
||||
inputStreamLengthMethod = env->GetMethodID(inputStreamClass, "length",
|
||||
"()J");
|
||||
@@ -107,7 +106,7 @@ void JVMInputStream::seek(TagLib::offset_t offset, Position p) {
|
||||
}
|
||||
|
||||
void JVMInputStream::clear() {
|
||||
env->CallVoidMethod(inputStream, inputStreamClearMethod);
|
||||
// Nothing to do
|
||||
}
|
||||
|
||||
TagLib::offset_t JVMInputStream::tell() const {
|
||||
|
||||
@@ -100,13 +100,11 @@ public:
|
||||
private:
|
||||
JNIEnv *env;
|
||||
jobject inputStream;
|
||||
jmethodID inputStreamNameMethod;
|
||||
jmethodID inputStreamReadBlockMethod;
|
||||
jmethodID inputStreamIsOpenMethod;
|
||||
jmethodID inputStreamSeekFromBeginningMethod;
|
||||
jmethodID inputStreamSeekFromCurrentMethod;
|
||||
jmethodID inputStreamSeekFromEndMethod;
|
||||
jmethodID inputStreamClearMethod;
|
||||
jmethodID inputStreamTellMethod;
|
||||
jmethodID inputStreamLengthMethod;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user