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

@@ -243,10 +243,12 @@ func printURIHandlerInfo(elem *gst.Element) {
fmt.Println()
}
colorOrange.print("URI handling capabilities:\n")
colorLightGray.printfIndent(2, "Element can act as %s.\n", strings.ToLower(elem.GetURIType().String()))
uriHandler := elem.URIHandler()
protos := elem.GetURIProtocols()
colorOrange.print("URI handling capabilities:\n")
colorLightGray.printfIndent(2, "Element can act as %s.\n", strings.ToLower(uriHandler.GetURIType().String()))
protos := uriHandler.GetURIProtocols()
if len(protos) == 0 {
fmt.Println()