X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fplayer.cc;h=978db035fe796e271fef8578753e44535b8654c1;hb=98060a4e6f02b418f30b4b736e5880a357454c40;hp=5c047d0eb5ecad5b2c34ed3cd313a55b5e0502e4;hpb=d121c9643095514178130b91907cb6f7ba97e74c;p=dcpomatic.git diff --git a/src/lib/player.cc b/src/lib/player.cc index 5c047d0eb..978db035f 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -22,10 +22,8 @@ #include "film.h" #include "ffmpeg_decoder.h" #include "ffmpeg_content.h" -#include "still_image_decoder.h" -#include "still_image_content.h" -#include "moving_image_decoder.h" -#include "moving_image_content.h" +#include "image_decoder.h" +#include "image_content.h" #include "sndfile_decoder.h" #include "sndfile_content.h" #include "subtitle_content.h" @@ -102,7 +100,9 @@ public: shared_ptr content; shared_ptr decoder; + /** Time of the last video we emitted relative to the start of the DCP */ Time video_position; + /** Time of the last audio we emitted relative to the start of the DCP */ Time audio_position; IncomingVideo repeat_video; @@ -219,16 +219,22 @@ Player::pass () } if (_audio) { - Time audio_done_up_to = TIME_MAX; + boost::optional