mirror of
https://github.com/jech/galene.git
synced 2024-11-09 18:25:58 +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
|
bufferedNACKs []uint16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type trackActionKind int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
trackActionAdd = iota
|
trackActionAdd trackActionKind = iota
|
||||||
trackActionDel
|
trackActionDel
|
||||||
trackActionKeyframe
|
trackActionKeyframe
|
||||||
)
|
)
|
||||||
|
|
||||||
type trackAction struct {
|
type trackAction struct {
|
||||||
action int
|
action trackActionKind
|
||||||
track conn.DownTrack
|
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})
|
up.actions.Put(trackAction{action, track})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue