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

@@ -257,9 +257,6 @@ void FFmpegReader::Close()
missing_video_frames.clear();
}
// Clear debug json
debug_root.clear();
// Close the video file
avformat_close_input(&pFormatCtx);
av_freep(&pFormatCtx);
@@ -526,7 +523,7 @@ tr1::shared_ptr<Frame> FFmpegReader::ReadStream(long int requested_frame)
// Wait if too many frames are being processed
while (processing_video_frames.size() + processing_audio_frames.size() >= minimum_packets)
usleep(50);
usleep(2500);
// Get the next packet (if any)
if (packet_error < 0)