Clean up grok's presence in the config file and make sure it's optional.
[dcpomatic.git] / src / lib / j2k_encoder.h
index 0dbe654a439730ff1d23f42c9dd4206a3a520592..6bfbaea496b0743b14e02b922ef57a2be84f8511 100644 (file)
@@ -127,8 +127,8 @@ private:
        boost::signals2::scoped_connection _server_found_connection;
 
 #ifdef DCPOMATIC_GROK
-       grk_plugin::DcpomaticContext* _dcpomatic_context;
-       grk_plugin::GrokContext *_context;
+       grk_plugin::DcpomaticContext* _dcpomatic_context = nullptr;
+       grk_plugin::GrokContext *_context = nullptr;
 #endif
 
        bool _ending = false;