mirror of
https://github.com/Monibuca/plugin-record.git
synced 2025-10-05 08:46:59 +08:00
fix: fmp4 record error
This commit is contained in:
7
raw.go
7
raw.go
@@ -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:
|
||||
|
Reference in New Issue
Block a user