Commit Graph

23 Commits

Author SHA1 Message Date
FeRD (Frank Dana)
aa40ea29e0 Update include paths in all source/header files 2020-10-18 07:43:37 -04:00
Frank Dana
e500cae9f5 Replace sleep()/usleep() with std::chrono calls (#473) 2020-09-02 02:07:54 -04:00
Frank Dana
799e43a0a2 Merge branch 'develop' into zmqfix 2020-03-26 07:34:58 -04:00
Chiller Dragon
0a5dfd93ad Fix zmq version check (#478) 2020-03-25 20:58:11 -04:00
FeRD (Frank Dana)
54f5fea201 ZeroMQ's std::string support is too new 2020-03-25 11:42:19 -04:00
Frank Dana
4fad197fbe Add version gating for Zmq and Qt deprecations (#470)
* ZmqLogger: Avoid deprecated send() in later ZMQ
* QtImageReader: byteCount() deprecated in QT 5.10+
2020-03-23 08:16:02 -04:00
SuslikV
dfbcb4730b Disable debug logger on close
The logger can be closed from the external thread (openshot-qt), while
same logger instance is still in use in libopenshot.

This change prevents crash on attempts to use debug logger if it was
closed.

Co-authored-by: Frank Dana <ferdnyc@users.noreply.github.com>
2019-08-12 14:09:26 +03:00
Jonathan Thomas
12fce8040f Merge pull request #266 from ferdnyc/zmq-default-params
Default values for ZMQ logging calls
2019-07-29 16:30:22 -05:00
Jonathan Thomas
cf0e827a24 Adding logging support for resvg (which will output on stderr) 2019-07-23 17:11:55 -05:00
FeRD (Frank Dana)
2dc2fffa45 ZmqLogger: default AppendDebugMethod()'s extra params
Give the AppendDebugMethod() declaration a set of default values for
all parameters after the first. (It uses `""` and `-1.0`, which are
what callers were passing in anyway.) This way, callers have the
_option_ to eschew this kind of thing:
```
ZmqLogger::Instance()->AppendDebugMethod("Message", "start", start,
"length", length, "", -1, "", -1, "", -1, "", -1);
```
instead, they can use the functionally equivalent:
```
ZmqLogger::Instance()->AppendDebugMethod("Message", "start", start,
"length", length);
```
Passing meaningless args is the compiler's job, not the programmer's.
2019-07-03 14:06:44 -04:00
FeRD (Frank Dana)
f170fdd009 Update copyright range to current year 2019-06-11 06:48:32 -04:00
FeRD (Frank Dana)
0327c2ab5c Remove license block from documentation comment 2019-06-09 08:31:04 -04:00
Jonathan Thomas
9d755c6d68 Revert "Check in code to handle missing clock_gettime() on most versions of M…" 2018-05-19 01:24:24 -05:00
Richard Alloway
eb6b48669b Merge branch 'master' into ZmgLogger_hires_timestamp 2018-05-18 13:43:15 -04:00
Rich Alloway
01f20286ed Check in code to handle missing clock_gettime() on most versions of Mac OS X 2018-04-23 11:11:18 -04:00
Jonathan Thomas
2a59184772 Revert "Prepend current time (hires) to messages logged via ZmqLogger" 2018-04-20 02:03:37 -05:00
Rich Alloway
5f38c112aa Fix output width of nsec in new hires timestamps in ZmqLogger.cpp 2018-04-12 16:57:38 -04:00
Rich Alloway
01c2d38a6b Prepend current time (hires) to messages logged via ZmqLogger 2018-04-06 16:33:26 -04:00
Jonathan Thomas
d79994a780 New cross platform exception handler for libopenshot! Logs basic stacktrace on segmentation fault. This will be a huge help in finding bugs and crashes. 2016-11-03 02:19:48 -05:00
Jonathan Thomas
4808be25ff Added 4 new clip keyframes (channel mapping, channel filter, has_video, and has_audio). These are a bit different though, as they are evaluated as boolean (-1 = ignored, 0 = disabled, 1 = enabled). Also fixed some issues with video playback (where it gets stuck in fast forward), and fixed some race conditions when opening FFmpegReader. Also added more debug output. 2016-04-24 15:37:47 -05:00
Jonathan Thomas
179d091005 Moved AppendDebugMessage to ZmqLogger, and updated 100+ references to use this new function. Removed debug var from readers/writers, and moved it to ZmqLogger.Enable(true/false). This allows debug output from all classes and functions, without any duplicate code. Also added some additional debug output for video playback and audio readers. 2016-04-21 01:39:17 -05:00
Jonathan Thomas
7c49628d93 Added new optional file logging abilities to ZmqLogger, which are guaranteed to write to disk (even if a crash happens immediately after logging) 2016-04-12 16:42:36 -05:00
Jonathan Thomas
723bd24e5c 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. 2016-04-04 23:09:18 -05:00