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

顺序执行2次 FFmpegCommand.runCmd 会报错 #46

Open
linfeizheng opened this issue May 11, 2022 · 2 comments
Open

顺序执行2次 FFmpegCommand.runCmd 会报错 #46

linfeizheng opened this issue May 11, 2022 · 2 comments

Comments

@linfeizheng
Copy link

我先对file1进行裁剪,得到结果file3后和file2进行拼接操作,会报错

Process: voicerecorder.audiorecorder.voice, PID: 867
java.util.ConcurrentModificationException
    at java.util.ArrayList$Itr.next(ArrayList.java:860)
    at com.coder.ffmpeg.jni.FFmpegCmd.onError(FFmpegCmd.kt:205)
@linfeizheng
Copy link
Author

FFmpegCmd的onComplete方法,mCallbacks只要size>1,就不能用这种方式remove数据

@linfeizheng
Copy link
Author

描述清楚一点,是在裁剪的onComplete里进行合并命令

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