From fc5f541024dbc8269714dfb28384b41e1d97cb61 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 29 Oct 2013 09:40:04 +0000 Subject: Fix audio weirdness when start-trimming. --- src/lib/player.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/player.cc b/src/lib/player.cc index 5c047d0eb..8370a3f9f 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -336,7 +336,7 @@ Player::process_audio (weak_ptr weak_piece, shared_ptrposition() + (content->audio_delay() * TIME_HZ / 1000) + relative_time; + Time time = content->position() + (content->audio_delay() * TIME_HZ / 1000) + relative_time - content->trim_start (); /* Remap channels */ shared_ptr dcp_mapped (new AudioBuffers (_film->audio_channels(), audio->frames())); @@ -574,7 +574,7 @@ Player::emit_black () #ifdef DCPOMATIC_DEBUG _last_video.reset (); #endif - + Video (_black_frame, EYES_BOTH, ColourConversion(), _last_emit_was_black, _video_position); _video_position += _film->video_frames_to_time (1); _last_emit_was_black = true; -- cgit v1.2.3