From a4d0c23071ef73788790c8103a71420c7fcb7487 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 28 Mar 2016 17:34:11 +0200 Subject: [PATCH] gsdx: init GSCapture field CID 159404 --- plugins/GSdx/GSCapture.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/GSdx/GSCapture.cpp b/plugins/GSdx/GSCapture.cpp index 7e85772f64..d31a0873d5 100644 --- a/plugins/GSdx/GSCapture.cpp +++ b/plugins/GSdx/GSCapture.cpp @@ -382,6 +382,9 @@ GSCapture::GSCapture() { m_out_dir = theApp.GetConfig("capture_out_dir", "/tmp/GSdx_Capture"); m_threads = theApp.GetConfig("capture_threads", 4); +#ifdef __linux__ + m_compression_level = theApp.GetConfig("png_compression_level", Z_BEST_SPEED); +#endif } GSCapture::~GSCapture() @@ -488,14 +491,9 @@ bool GSCapture::BeginCapture(float fps, GSVector2i recomendedResolution, float a m_size.x = theApp.GetConfig("capture_resx", 1280); m_size.y = theApp.GetConfig("capture_resy", 1024); - m_compression_level = theApp.GetConfig("png_compression_level", Z_BEST_SPEED); - -#ifdef __linux__ for(int i = 0; i < m_threads; i++) { m_workers.push_back(new GSPng::Worker()); } -#endif - #endif m_capturing = true;