Protect against tracks without a stream.

This commit is contained in:
Juliusz Chroboczek
2021-09-16 17:17:36 +02:00
parent e81ee4af5e
commit 09c5ba0d06
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -368,7 +368,7 @@ func addDownTrackUnlocked(conn *rtpDownConnection, remoteTrack *rtpUpTrack) erro
id = remoteTrack.track.Kind().String()
}
msid := remoteTrack.track.StreamID()
if msid == "" {
if msid == "" || msid == "-" {
log.Println("Got track with empty msid")
msid = remoteTrack.conn.Label()
}