Commit Graph

1708 Commits

Author SHA1 Message Date
saxon b4393e5136 stream/mts/psi/psi.go: checking that we have enough space in psi before creating descriptor 2019-02-07 15:23:41 +10:30
saxon 21265303d7 stream/mts/mpegts.go: reorganised exported constants and commented 2019-02-07 15:06:54 +10:30
saxon b8fc6d7e99 stream/mts/meta/meta.go: ReadFrom to Extract 2019-02-07 14:50:31 +10:30
saxon 46b5acb48c stream/mts/mpgets.go: removing unused consts 2019-02-07 13:59:43 +10:30
saxon 7a7be5580d stream/mts/metaEncode_test.go: wrote function comments for tests 2019-02-07 10:55:58 +10:30
saxon bb032778c6 stream/mts/metaEncode_test.go: fixed metaEncode_test.go by initialising Meta global in tests 2019-02-07 10:48:25 +10:30
saxon 66a2325dcb stream/mts/meta/meta_test.go: using table of tests for TestReadFrom 2019-02-07 10:42:01 +10:30
saxon f96f761b2f stream/mts/meta/meta_test.go: fixed up error logging in meta_test.go i.e. not doing err.Error() for %v format specifiers, and not using t.Errorf when we have no arguments 2019-02-07 09:01:40 +10:30
saxon ad671b520c stream/mts/encoder.go: put todo under comment for Meta meta.Data global 2019-02-07 08:31:02 +10:30
saxon 7cb58c81eb stream/mts/encoder.go: added comment to Meta meta.Data global as it unexported. 2019-02-07 08:29:51 +10:30
saxon fb2217a1f9 stream/mts/encoder.go: wrote todo to make Meta meta.Data struct not be global 2019-02-07 08:27:37 +10:30
saxon e2bbc84c1e cmd/revid-cli: using const strings for copyright metadata preamble 2019-02-07 08:25:37 +10:30
saxon 57d1dba2fb stream/mts/meta/meta.go: updated meta.NewWith so that it just uses meta.New, and now ti can add an abitrary number of things to the map. It also overwrites keys that have been repeated 2019-02-06 12:16:44 +10:30
saxon 2b7ab27763 cmd/revid-cli & stream/mts/meta: added meta.NewWith function that creates a new meta.Data and adds an initial entry. Using meta.NewWith in revid-cli to initialise mts' global meta.Data with some preamble data. 2019-02-06 10:19:12 +10:30
saxon d523677627 stream/mts/meta/meta.go: renamed Metadata struct to Data 2019-02-06 09:59:55 +10:30
saxon 9b5eb558ef stream/mts/meta/meta_test.go: Updated func comment for TestReadFrom 2019-02-06 00:01:17 +10:30
saxon 35c06c97aa stream/mts/meta/meta_test.go: not using global vars for errors 2019-02-05 23:57:53 +10:30
saxon 89b05b3cb6 stream/mts/meta/meta.go: using copy instead of append to remove key from order slice in Meta.Delete() 2019-02-05 23:29:07 +10:30
saxon cf73c853b0 stream/mts/meta/meta.go: using defer for m.mu.Unlock() Meta.Add() 2019-02-05 23:25:46 +10:30
saxon 6b32064a2b stream/mts/encoder.go: changed updateMeta signature to return bytes slice rather than passing in pointer to byte slice. 2019-02-05 23:24:00 +10:30
saxon dc46d9f0b2 stream/mts/encoder.go: not doing scoped conditional in writePSI when calling updateMeta 2019-02-05 23:18:05 +10:30
saxon 6425403fcb stream/mts/encoder.go: adding copyright meta first thing 2019-02-05 13:14:42 +10:30
saxon 3364b4ea6f stream/mts/meta.go: avoiding adding same key to order slice 2019-02-05 13:11:11 +10:30
saxon 834625a9f7 stream/mts/meta: using order slice so that encoded order reamins consistent with order that we added metadata. And also now using binary.BigEndian.PutUint16() to encode len into metdata rather than doing ugly byte manipulation 2019-02-05 12:55:32 +10:30
saxon ad25785b77 stream/mts/meta/meta_test.go: improved ReadFrom by checking for valid header 2019-02-04 22:48:51 +10:30
saxon 953d363b3a stream/mts/meta.go: improved const and function commenting 2019-02-04 22:38:11 +10:30
saxon 0a96d18a10 stream/mts/encoder.go: finished comment for updateMeta function 2019-02-04 22:17:39 +10:30
saxon 1570974ab7 stream/mts/encoder.go: removed init func where Meta was being initialised - just doing initialisation on same line 2019-02-04 22:14:17 +10:30
saxon bad68923e6 Merge branch 'master' into metadata-refactor 2019-02-01 15:11:57 +10:30
saxon eb54871402 stream/mts/encoder.go: simplified updateMeta 2019-02-01 11:39:47 +10:30
saxon 4d4a8e04ec stream/mts/meta/meta_test.go: created global err vars 2019-02-01 11:17:53 +10:30
Saxon Milton ea89e7a5af Merged in revid-api-redesign-phase1 (pull request #130)
stream/mts: patch for revid.Start() no exit bug

Approved-by: Alan Noble <anoble@gmail.com>
2019-01-31 23:55:14 +00:00
saxon c44d6bbfd3 revid/revid.go: not during time.Duration conversion 2019-02-01 10:08:49 +10:30
saxon 9bddf343f5 revid/revid.go: moved revid.mu declaration
. Updated todo owner
2019-02-01 10:07:00 +10:30
saxon d26aa8643a revid: renamed transcode to processFrom. Using mutex for isRunning flag. Created setIsRunning func to set state of isRunning. 2019-02-01 09:47:31 +10:30
saxon 38d5d6f0fd stream/mts/meta/meta_test.go: adding test for ReadFrom 2019-02-01 09:27:43 +10:30
Alan Noble 0f346ea523 Merged in rtmp-refactoring-4 (pull request #121)
Rtmp refactoring 4

Approved-by: Saxon Milton <saxon.milton@gmail.com>
Approved-by: Alan Noble <anoble@gmail.com>
2019-01-31 21:26:22 +00:00
saxon 1f1546a284 revid: updated code in senders.go to work with meta changes 2019-01-31 21:30:08 +10:30
saxon 10343375a3 stream/mts: moved meta.go and meta_test.go into meta package 2019-01-31 21:23:06 +10:30
saxon 051263c144 revid/revid.go: revid.lex to revid.transcode 2019-01-31 19:58:25 +10:30
saxon 1e307fc37b revid/revid.go: made routines named rather than anonymous 2019-01-31 19:42:20 +10:30
saxon e18b1f51f0 revid/revid.go: capture error from r.Start() in error handling routine 2019-01-31 15:49:44 +10:30
saxon d53eafe215 revid/revid.go: not running r.setupInput() as routine - now getting error an returning 2019-01-31 15:15:38 +10:30
saxon ed4d97f893 stream/mts: patch for revid.Start() no exit bug 2019-01-31 15:03:50 +10:30
saxon 9011c090d9 stream/mts/meta.go: wrote ReadFrom func - still need to write tests for it 2019-01-31 13:26:16 +10:30
saxon 1d9cb57505 stream/mts/metaEncode_test.go: added another test to check behaviour when more meta data is added. 2019-01-30 16:22:57 +10:30
saxon d373f85b85 stream/mts: wrote test in metaEncode_test.go and found bug which was fixed 2019-01-30 15:37:15 +10:30
kortschak 197ca684a6 Merged in sliceoutputs (pull request #120)
cmd/revid-cli,revid: use a slice for output destination flags

Approved-by: Saxon Milton <saxon.milton@gmail.com>
2019-01-30 03:07:30 +00:00
saxon 7dd1ce99e1 stream/mts: started writing metaEncode_test.go file 2019-01-30 13:23:07 +10:30
Dan Kortschak 58102e5587 revid: fix http destination assignment 2019-01-30 13:19:00 +10:30