2014-01-28 Carl Hetherington <cth@carlh.net>
+ * Try to prevent Windows machines going to sleep during encodes.
+
* Add option to not install main program / server on Windows.
2014-01-26 Carl Hetherington <cth@carlh.net>
print >>f,'Architecture: amd64'
print >>f,'Section: debug'
print >>f,'Priority: extra'
- print >>f,'Depends: ${dcpomatic:Depends}, ${misc:Depends}'
+ packages('Depends', depends[version], f)
print >>f,'Description: debugging symbols for dcpomatic'
print >>f,' This package contains the debugging symbols for dcpomatic.'
print >>f,''
return fseek (stream, offset, whence);
#endif
}
+
+void
+kick ()
+{
+#ifdef DCPOMATIC_WINDOWS
+ SetThreadExecutionState (ES_CONTINUOUS);
+#endif
+}
#endif
extern FILE * fopen_boost (boost::filesystem::path, std::string);
extern int dcpomatic_fseek (FILE *, int64_t, int);
+void kick ();
void
Encoder::process_video (shared_ptr<PlayerImage> image, Eyes eyes, ColourConversion conversion, bool same)
{
+ kick ();
+
boost::mutex::scoped_lock lock (_mutex);
/* XXX: discard 3D here if required */