mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-05 07:56:51 +08:00
add tag/toc examples and general cleanup
This commit is contained in:
@@ -806,6 +806,17 @@ const (
|
||||
TOCScopeCurrent TOCScope = C.GST_TOC_SCOPE_CURRENT
|
||||
)
|
||||
|
||||
// String implements a stringer on a TOCScope
|
||||
func (t TOCScope) String() string {
|
||||
switch t {
|
||||
case TOCScopeGlobal:
|
||||
return "global"
|
||||
case TOCScopeCurrent:
|
||||
return "current"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// TOCLoopType represents a GstTocLoopType
|
||||
type TOCLoopType int
|
||||
|
||||
|
Reference in New Issue
Block a user