- /** true if the last frame we processed was skipped (because it was already done) */
- bool _just_skipped;
- /** Index of the last frame to be processed */
- int _last_frame;
+
+ /** Number of video frames received so far */
+ SourceFrame _video_frames_in;
+ /** Number of video frames written for the DCP so far */
+ int _video_frames_out;
+
+#if HAVE_SWRESAMPLE
+ SwrContext* _swr_context;
+#endif
+
+ bool _have_a_real_frame;
+ bool _terminate;
+ std::list<boost::shared_ptr<DCPVideoFrame> > _queue;
+ std::list<boost::thread *> _threads;
+ mutable boost::mutex _mutex;
+ boost::condition _condition;
+
+ boost::shared_ptr<Writer> _writer;