Reuse shared PlayerState enum

This commit is contained in:
Stu Leak 2026-01-10 15:50:34 -05:00
parent 5139ae8f4e
commit db841b286d

View File

@ -111,17 +111,10 @@ type busEvent struct {
State C.GstState State C.GstState
} }
type PlayerState int
const ( const (
StateIdle PlayerState = iota StateIdle PlayerState = iota + 100
StateLoading
StatePaused
StatePlaying
StateSeeking StateSeeking
StateStepping StateStepping
StateStopped
StateError
StateEOS StateEOS
) )