X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer.cc;h=4cdeb7256ef731975693a5cf088b2cf2ba0c0253;hb=ffb3cf8bfe397c87d0e797eb8732aa6b1f6c5091;hp=fe08241ab8258bca5ec05cf8865472ef584cc941;hpb=d8ded66fccb98bd0145afb2f08cf84aad7002a15;p=dcpomatic.git 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 #include #include @@ -883,6 +884,7 @@ Player::audio (weak_ptr wp, AudioStreamPtr stream, ContentAudio content_a return; } shared_ptr 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 audio, DCPTime time, DCPTi return make_pair(shared_ptr(), DCPTime()); } shared_ptr 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); }