From ea6b61675904b4034e532361d17e5b14fa756964 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 17 Apr 2021 23:48:02 +0200 Subject: [PATCH] RTMP source: fix reading audio track --- internal/sourcertmp/source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/sourcertmp/source.go b/internal/sourcertmp/source.go index e5035563..81b757b3 100644 --- a/internal/sourcertmp/source.go +++ b/internal/sourcertmp/source.go @@ -193,7 +193,7 @@ func (s *Source) runInner() bool { onFrame := func(trackID int, payload []byte) { rtcpSenders.OnFrame(trackID, gortsplib.StreamTypeRTP, payload) - res.SP.OnFrame(videoTrack.ID, gortsplib.StreamTypeRTP, payload) + res.SP.OnFrame(trackID, gortsplib.StreamTypeRTP, payload) } for {