From 6388f16e87bd2dca7e4c49eeddfd4ef40e71e638 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sat, 17 Jul 2021 00:05:55 +0200 Subject: [PATCH] Fix typos in infinite action stream implementation. This fixes issues introduced in commit 6ae79f. --- rtpconn/rtpreader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtpconn/rtpreader.go b/rtpconn/rtpreader.go index 815f543e..d86b5485 100644 --- a/rtpconn/rtpreader.go +++ b/rtpconn/rtpreader.go @@ -33,6 +33,7 @@ func readLoop(track *rtpUpTrack) { case <-track.actionCh: track.mu.Lock() actions := track.actions + track.actions = nil track.mu.Unlock() for _, action := range actions { switch action.action { @@ -53,6 +54,7 @@ func readLoop(track *rtpUpTrack) { log.Printf("Unknown action") } } + default: } bytes, _, err := track.track.Read(buf)