mirror of https://bitbucket.org/ausocean/av.git
d519f50fe5
In the Noop lexer we start a routine that's responsible for output of the written frames at a consistent rate (to make certain destinations happy i.e. youtube). We weren't however returning from this in the case that the lexing function is returned, we'd therefore then be left with a hanging routine (this would eventually keep happening until stack overflow if had long enough runtime for the service; not a big deal for systemd services, but still crappy). So, now we create a context which is cancelled when when the lex function returns and can detect this in the output routine. Approved-by: Alan Noble |
||
---|---|---|
.. | ||
bytescanner.go | ||
bytescanner_test.go | ||
lex.go | ||
lex_test.go | ||
list.go |