You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Merge pull request #283 from OpenShot/improved-resvg-logging
Adding logging support for resvg
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user