Adding new dependency: libzmq (ZeroMQ). Adding a new debug logging class powered by sockets and ZeroMQ, to allow a threadsafe way to communicate debug messages to a client application (i.e. openshot-qt). Also, removing unneeded Sleep.h functions. There will be lots more code utilizing ZeroMQ soon.

This commit is contained in:
Jonathan Thomas
2016-04-04 23:09:18 -05:00
parent 6d2d342719
commit 723bd24e5c
22 changed files with 322 additions and 207 deletions

View File

@@ -371,7 +371,7 @@ void FFmpegWriter::WriteFrame(tr1::shared_ptr<Frame> frame) throw(ErrorEncodingV
{
// YES, WRITING... so wait until it finishes, before writing again
while (is_writing)
Sleep(1); // sleep for 250 milliseconds
usleep(250000); // sleep for 250 milliseconds
// Write frames to video file
write_queued_frames();