If you are doing ffmpeg processing on the main thread, well, don't do that. Make sure you are threading appropriately for Android applications and observing the android activity lifecycle. It doesn't matter if you are using the NDK or not.
Doug
On Friday, June 15, 2012 6:41:57 AM UTC-7, Rui Luís wrote:
Good day.
I am trying to use ffmpeg in android through the NDK. I can make it work. i can see a live stream in my android phone. The problem is if i press the back button a couple of times (4 or 5) and starting again ffmepg after this 4 or 5 time times that it works the application crash (the activity calling the ffmpeg NDK) without any kind of error or indication of error. it simply call the oncreate of the activity. The problem is that i already run all the debugging case i could imagine. i clean all the memory that i create. Does any one pass by the same issue?
thanks.