From cf0e827a24781ed4f58177a69a8ffc03281c8852 Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Tue, 23 Jul 2019 17:11:55 -0500 Subject: [PATCH] Adding logging support for resvg (which will output on stderr) --- src/ZmqLogger.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ZmqLogger.cpp b/src/ZmqLogger.cpp index f9ecc875..325bf6c0 100644 --- a/src/ZmqLogger.cpp +++ b/src/ZmqLogger.cpp @@ -30,6 +30,10 @@ #include "../include/ZmqLogger.h" +#if USE_RESVG == 1 + #include "ResvgQt.h" +#endif + using namespace std; using namespace openshot; @@ -54,6 +58,13 @@ ZmqLogger *ZmqLogger::Instance() // Init enabled to False (force user to call Enable()) m_pInstance->enabled = false; + + #if USE_RESVG == 1 + // Init resvg logging (if needed) + // This can only happen 1 time or it will crash + ResvgRenderer::initLog(); + #endif + } return m_pInstance;