bravobit / FFmpeg-Android

FFMpeg/FFprobe compiled for Android
https://bravobit.nl/
MIT License
734 stars 172 forks source link

Question about `sendQuitSignal` #97

Open EkslV opened 5 years ago

EkslV commented 5 years ago

Maybe my question related to this issue https://github.com/bravobit/FFmpeg-Android/issues/90

I have followed the logic of sendQuitSignal() FFcommandExecuteAsyncTask.java class line 129.

At this time work while checkAndUpdateProcess() and it cames to line 106 where you make:

process = null;
return;

it goes to line 49 where I get:

Error running FFmpeg binary
    java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Process.exitValue()' on a null object reference

because CommandResult.getOutputFromProcess(process) on process that is null.

and after it goes to finally Util.destroyProcess(process); on a null so process.destroy() not happend.

did you have the opportunity to fix it? or give me some advice how I can fix it?

NhgrtPlayer commented 4 years ago

To add a little bit about this issue, I've also got this error, here are my step