mirror of
https://github.com/jech/galene.git
synced 2024-11-21 16:15:57 +01:00
Use a named type for trackAction kind.
This commit is contained in:
parent
5c2e5ee5c0
commit
002d519f91
1 changed files with 5 additions and 3 deletions
|
@ -415,18 +415,20 @@ type rtpUpTrack struct {
|
|||
bufferedNACKs []uint16
|
||||
}
|
||||
|
||||
type trackActionKind int
|
||||
|
||||
const (
|
||||
trackActionAdd = iota
|
||||
trackActionAdd trackActionKind = iota
|
||||
trackActionDel
|
||||
trackActionKeyframe
|
||||
)
|
||||
|
||||
type trackAction struct {
|
||||
action int
|
||||
action trackActionKind
|
||||
track conn.DownTrack
|
||||
}
|
||||
|
||||
func (up *rtpUpTrack) action(action int, track conn.DownTrack) {
|
||||
func (up *rtpUpTrack) action(action trackActionKind, track conn.DownTrack) {
|
||||
up.actions.Put(trackAction{action, track})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue