From e62ed283d1b52acb3b2b4abdb3355fcbc0ba830b Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Thu, 30 Sep 2021 11:57:03 +0200 Subject: [PATCH] rtmp: do not raise an error in case of metadata packets (#577) --- internal/core/rtmp_conn.go | 3 --- internal/core/rtmp_source.go | 3 --- 2 files changed, 6 deletions(-) diff --git a/internal/core/rtmp_conn.go b/internal/core/rtmp_conn.go index 38dd8856..aaed6edf 100644 --- a/internal/core/rtmp_conn.go +++ b/internal/core/rtmp_conn.go @@ -552,9 +552,6 @@ func (c *rtmpConn) runPublish(ctx context.Context) error { for _, byts := range bytss { onFrame(audioTrackID, byts) } - - default: - return fmt.Errorf("ERR: unexpected packet: %v", pkt.Type) } } } diff --git a/internal/core/rtmp_source.go b/internal/core/rtmp_source.go index c9ce52e0..dae9a776 100644 --- a/internal/core/rtmp_source.go +++ b/internal/core/rtmp_source.go @@ -241,9 +241,6 @@ func (s *rtmpSource) runInner() bool { for _, byts := range bytss { onFrame(audioTrackID, byts) } - - default: - return fmt.Errorf("ERR: unexpected packet: %v", pkt.Type) } } }()