diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-01-17 22:34:58 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-17 22:34:58 +0000 |
| commit | ffb3cf8bfe397c87d0e797eb8732aa6b1f6c5091 (patch) | |
| tree | f291cc5394963a8064db6b4e270512f641d42a19 /src/lib/player.cc | |
| parent | d8ded66fccb98bd0145afb2f08cf84aad7002a15 (diff) | |
Debug.debug/shane
Diffstat (limited to 'src/lib/player.cc')
| -rw-r--r-- | src/lib/player.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index fe08241ab..4cdeb7256 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -48,6 +48,7 @@ #include "image_decoder.h" #include "compose.hpp" #include "shuffler.h" +#include "dcpomatic_log.h" #include <dcp/reel.h> #include <dcp/reel_sound_asset.h> #include <dcp/reel_subtitle_asset.h> @@ -883,6 +884,7 @@ Player::audio (weak_ptr<Piece> wp, AudioStreamPtr stream, ContentAudio content_a return; } shared_ptr<AudioBuffers> cut (new AudioBuffers (content_audio.audio->channels(), remaining_frames)); + LOG_GENERAL_NC("copy_from #8"); cut->copy_from (content_audio.audio.get(), remaining_frames, 0, 0); content_audio.audio = cut; } @@ -1167,6 +1169,7 @@ Player::discard_audio (shared_ptr<const AudioBuffers> audio, DCPTime time, DCPTi return make_pair(shared_ptr<AudioBuffers>(), DCPTime()); } shared_ptr<AudioBuffers> cut (new AudioBuffers (audio->channels(), remaining_frames)); + LOG_GENERAL_NC("copy_from #9"); cut->copy_from (audio.get(), remaining_frames, discard_frames, 0); return make_pair(cut, time + discard_time); } |
