Invoking Handbrake through JNI in Ubuntu 10.04

Archive of historical development discussions
Discussions / Development has moved to GitHub
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
harit
Posts: 1
Joined: Wed Jun 27, 2012 1:56 pm

Invoking Handbrake through JNI in Ubuntu 10.04

Post by harit »

I have compiled HandBrake code with a patch for JNI into test.c file . The native method invokes the main() function of test.c that I think is invoked when we call the HandBrakeCLI.
Now the problem is :
When I invoke the native method once it works fine. But when I invoke the same method more than once in the same process, it transcodes successfully for the first time but it crashes for the second time.

This is not the issue of JNI. it has something to do with the HandBrake.
"How do you invoke it multiple times in the same process???"
User avatar
JohnAStebbins
HandBrake Team
Posts: 5712
Joined: Sat Feb 09, 2008 7:21 pm

Re: Invoking Handbrake through JNI in Ubuntu 10.04

Post by JohnAStebbins »

Moving to developement since this is more a question and involves unsupported patch.
Post Reply