wip: encoding; crashes on startup.
[dcpomatic.git] / src / lib / player_video.cc
index 10e798ed510644a86e03d11249d737139268d3b0..e88b653467a25c59585ee4e049f9eb5e37098546 100644 (file)
@@ -25,6 +25,7 @@
 #include "image_proxy.h"
 #include "j2k_image_proxy.h"
 #include "film.h"
+#include "timer.h"
 #include <dcp/raw_convert.h>
 extern "C" {
 #include <libavutil/pixfmt.h>
@@ -42,6 +43,7 @@ using boost::optional;
 using boost::function;
 using dcp::Data;
 using dcp::raw_convert;
+using namespace dcpomatic;
 
 PlayerVideo::PlayerVideo (
        shared_ptr<const ImageProxy> in,
@@ -115,6 +117,7 @@ PlayerVideo::image (function<AVPixelFormat (AVPixelFormat)> pixel_format, bool a
 
        boost::mutex::scoped_lock lm (_mutex);
        if (!_image || _crop != _image_crop || _inter_size != _image_inter_size || _out_size != _image_out_size || _fade != _image_fade) {
+               //timestamped_printf("_________________!!! make_image() for %d [%d]\n", time.frames_round(24), !_image);
                make_image (pixel_format, aligned, fast);
        }
        return _image;