refactor: frame converter and mp4 track improvements

- Refactor frame converter implementation
- Update mp4 track to use ICodex
- General refactoring and code improvements

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
langhuihui
2025-08-04 09:17:12 +08:00
parent b6ee2843b0
commit 8a9fffb987
262 changed files with 20831 additions and 12141 deletions

View File

@@ -36,7 +36,13 @@ func (w *WaitManager) WakeUp(streamPath string, publisher *Publisher) {
for subscriber := range waiting.Range {
publisher.AddSubscriber(subscriber)
}
w.Remove(waiting)
waiting.Clear()
publisher.OnDispose(func() {
if waiting.Length == 0 {
w.Remove(waiting)
}
})
// w.Remove(waiting)
}
}