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

Parser ffmpeg has data race when closing #204

Open
luxcgo opened this issue Feb 22, 2022 · 1 comment
Open

Parser ffmpeg has data race when closing #204

luxcgo opened this issue Feb 22, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@luxcgo
Copy link

luxcgo commented Feb 22, 2022

Describe the bug
ffmpeg 结束录制时有 data race

To Reproduce
code和报错日志见附件

替换 u 为可以录制的直播流
go build main.go -race

Expected behavior
没有数据竞争

Additional context
Add any other context about the problem here.
test2.zip

@luxcgo luxcgo added the bug Something isn't working label Feb 22, 2022
@hr3lxphr6j
Copy link
Owner

暂时没想到啥避免的好方法,确实需要在两个协程内访问cmd对象也没法直接加锁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants