Previously the code did not account for referenced audio, so far
authorCarl Hetherington <cth@carlh.net>
Fri, 29 Dec 2017 01:11:22 +0000 (01:11 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 29 Dec 2017 01:11:22 +0000 (01:11 +0000)
commit60d528017a3ac1afdc30a3a000b28dda96a2175e
treedf6cad7c5ccd7f0da0802eb7dcf258df2bf1f7f9
parentf8755c678d5b4b3d6b31761ef0ec13265190ca0c
Previously the code did not account for referenced audio, so far
as I can see.  It decided which reel to write new audio to based on
how many frames had been written to the current reel; this makes
no sense for referred reels for which the player will emit no audio.

This code looks at the audio timestamp instead.
src/lib/dcp_encoder.cc
src/lib/reel_writer.cc
src/lib/reel_writer.h
src/lib/writer.cc
src/lib/writer.h