Commit 6388f16e authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix typos in infinite action stream implementation.

This fixes issues introduced in commit 6ae79f.
parent b9c1968b
...@@ -33,6 +33,7 @@ func readLoop(track *rtpUpTrack) { ...@@ -33,6 +33,7 @@ func readLoop(track *rtpUpTrack) {
case <-track.actionCh: case <-track.actionCh:
track.mu.Lock() track.mu.Lock()
actions := track.actions actions := track.actions
track.actions = nil
track.mu.Unlock() track.mu.Unlock()
for _, action := range actions { for _, action := range actions {
switch action.action { switch action.action {
...@@ -53,6 +54,7 @@ func readLoop(track *rtpUpTrack) { ...@@ -53,6 +54,7 @@ func readLoop(track *rtpUpTrack) {
log.Printf("Unknown action") log.Printf("Unknown action")
} }
} }
default:
} }
bytes, _, err := track.track.Read(buf) bytes, _, err := track.track.Read(buf)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment