fix: fmp4 record error

This commit is contained in:
langhuihui
2023-08-13 14:54:07 +08:00
parent 30bb6ed506
commit 8f33e9b802
6 changed files with 43 additions and 33 deletions

7
raw.go
View File

@@ -30,7 +30,12 @@ func (r *RawRecorder) Start(streamPath string) error {
}
return r.start(r, streamPath, SUBTYPE_RAW)
}
func (r *RawRecorder) Close() (err error) {
if r.File != nil {
err = r.File.Close()
}
return
}
func (r *RawRecorder) OnEvent(event any) {
switch v := event.(type) {
case FileWr: