Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Errors in VideoUtils.java file. #1

Open
aravindan1992 opened this issue Jul 22, 2014 · 0 comments
Open

Getting Errors in VideoUtils.java file. #1

aravindan1992 opened this issue Jul 22, 2014 · 0 comments

Comments

@aravindan1992
Copy link

Hi to all, I am Aravind. I recently tried your jwfing/ AndroidVideoKit / src / com / avos / minute / recorder / VideoUtils.java file in my project.

https://github.com/jwfing/AndroidVideoKit/blob/master/src/com/avos/minute/recorder/VideoUtils.java

I am getting errors in the code as "Resource leak: 'unassigned Closeable value' " is never closed at line 46, 47, 79, 80 and getting another error as "The value of the local variable b is not used" in line 85.

If I try to close the value by adding " RandomAccessFile randomAccessFile = null; " after line 78. And called the close function as,

close(randomAccessFile);

private static void close(RandomAccessFile randomAccessFile)
{
try {
if (randomAccessFile!= null) {
randomAccessFile.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}

Now I am getting error as "RandomAccessFile cannot be resolved to a variable" at, (close(randomAccessFile); and also warning at, private static void close(RandomAccessFile randomAccessFile) as "The method close(RandomAccessFile) from the type VideoUtils is never used locally".

I am using Eclipse Kepler Standard/SDK. Can you help me to clear the errors.?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant