add tag/toc examples and general cleanup

This commit is contained in:
tinyzimmer
2020-10-05 14:23:46 +03:00
parent 9335dddc6e
commit 0c346775a3
11 changed files with 412 additions and 33 deletions

View File

@@ -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