remove StreamType from base

This commit is contained in:
aler9
2021-10-30 16:39:02 +02:00
committed by Alessandro Ros
parent 6d340cdf39
commit e8e2059b0d
5 changed files with 27 additions and 43 deletions

View File

@@ -146,10 +146,10 @@ func (sc *ServerConn) run() {
switch what.(type) {
case *base.InterleavedFrame:
channel := frame.Channel
streamType := base.StreamTypeRTP
streamType := StreamTypeRTP
if (channel % 2) != 0 {
channel--
streamType = base.StreamTypeRTCP
streamType = StreamTypeRTCP
}
// forward frame only if it has been set up