Some more debug logging.
[dcpomatic.git] / src / lib / decoder.cc
index 973582ca49237e3bd88739edce39389fe0fc88af..19fd4f45ccda48707c90b555e9c2f6ae3a9ddbae 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <iostream>
 #include <stdint.h>
+#include <boost/lexical_cast.hpp>
 extern "C" {
 #include <libavfilter/avfiltergraph.h>
 #include <libavfilter/buffersrc.h>
@@ -409,6 +410,7 @@ Decoder::process_video (AVFrame* frame)
                                image->make_black ();
                        }
 
+                       _log->microsecond_log ("Decoder emits " + lexical_cast<string> (_video_frame), Log::TIMING);
                        Video (image, _video_frame);
                        ++_video_frame;
                }