mts: patTable and pmtTable in var block instead of init func now

This commit is contained in:
saxon 2018-12-14 16:09:53 +10:30
parent cf4c44f4d5
commit ac11b281c5
1 changed files with 2 additions and 7 deletions

View File

@ -36,11 +36,6 @@ import (
"bitbucket.org/ausocean/av/stream/mts/psi" "bitbucket.org/ausocean/av/stream/mts/psi"
) )
var (
patTable []byte
pmtTable []byte
)
const ( const (
psiPacketSize = 184 psiPacketSize = 184
psiSendCount = 21 psiSendCount = 21
@ -61,10 +56,10 @@ func SetLocation(g string) {
metaData.location = g metaData.location = g
} }
func init() { var (
patTable = psi.StdPat.Bytes() patTable = psi.StdPat.Bytes()
pmtTable = psi.StdPmtTimeLocation.Bytes() pmtTable = psi.StdPmtTimeLocation.Bytes()
} )
const ( const (
sdtPid = 17 sdtPid = 17