mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-19 13:06:57 +00:00
rtmp: do not raise an error in case of metadata packets (#577)
This commit is contained in:
parent
fc46c33a96
commit
e62ed283d1
@ -552,9 +552,6 @@ func (c *rtmpConn) runPublish(ctx context.Context) error {
|
|||||||
for _, byts := range bytss {
|
for _, byts := range bytss {
|
||||||
onFrame(audioTrackID, byts)
|
onFrame(audioTrackID, byts)
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("ERR: unexpected packet: %v", pkt.Type)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -241,9 +241,6 @@ func (s *rtmpSource) runInner() bool {
|
|||||||
for _, byts := range bytss {
|
for _, byts := range bytss {
|
||||||
onFrame(audioTrackID, byts)
|
onFrame(audioTrackID, byts)
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
|
||||||
return fmt.Errorf("ERR: unexpected packet: %v", pkt.Type)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user