diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-05-20 20:20:08 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-20 21:56:28 +0200 |
| commit | 591ccb82d75070d7cba55995bab23513741ff5cf (patch) | |
| tree | bb131f9ac7f70c1dccd6744091a6fc9fec87e9d8 /src/lib/player.cc | |
| parent | bf0fb7f4f556946c18da151e468f237d9ca96094 (diff) | |
Add a bit more debug logging to the player.
Diffstat (limited to 'src/lib/player.cc')
| -rw-r--r-- | src/lib/player.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 4f81199a5..d2e5ed521 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -23,6 +23,7 @@ #include "audio_buffers.h" #include "content_audio.h" #include "dcp_content.h" +#include "dcpomatic_log.h" #include "job.h" #include "image.h" #include "raw_image_proxy.h" @@ -664,6 +665,7 @@ Player::pass () break; } case BLACK: + LOG_DEBUG_PLAYER ("Emit black for gap at %1", to_string(_black.position())); emit_video (black_player_video_frame(EYES_BOTH), _black.position()); _black.set_position (_black.position() + one_video_frame()); break; @@ -836,10 +838,12 @@ Player::video (weak_ptr<Piece> wp, ContentVideo video) } while (j < fill_to || eyes != fill_to_eyes) { if (last != _last_video.end()) { + LOG_DEBUG_PLAYER("Fill using last video at %1 in 3D mode", to_string(j)); shared_ptr<PlayerVideo> copy = last->second->shallow_copy(); copy->set_eyes (eyes); emit_video (copy, j); } else { + LOG_DEBUG_PLAYER("Fill using black at %1 in 3D mode", to_string(j)); emit_video (black_player_video_frame(eyes), j); } if (eyes == EYES_RIGHT) { |
