diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-01 21:47:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-01 21:47:26 +0100 |
| commit | e82a4c81fe8bb3c3c6b68c667bda2f32fed4e68d (patch) | |
| tree | 180bf6ef98312f4241dbdc0234a67206f7458e6b /src/lib/content.cc | |
| parent | 8abb560971a256c0cfa9c9a3fe1d88964d593052 (diff) | |
Force audio content to be on a sample boundary.
Diffstat (limited to 'src/lib/content.cc')
| -rw-r--r-- | src/lib/content.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc index c1812b9fd..9b16eff7f 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -191,11 +191,16 @@ Content::signal_changed (int p) void Content::set_position (DCPTime p) { - /* video content can modify its position */ + /* video and audio content can modify its position */ + if (video) { video->modify_position (p); } + if (audio) { + audio->modify_position (p); + } + { boost::mutex::scoped_lock lm (_mutex); if (p == _position) { @@ -211,11 +216,16 @@ Content::set_position (DCPTime p) void Content::set_trim_start (ContentTime t) { - /* video content can modify its start trim */ + /* video and audio content can modify its start trim */ + if (video) { video->modify_trim_start (t); } + if (audio) { + audio->modify_trim_start (t); + } + { boost::mutex::scoped_lock lm (_mutex); _trim_start = t; |
