GS: Fix Wunused-private-field warning.

This commit is contained in:
lightningterror 2022-08-14 19:04:09 +02:00
parent 1342ed2afe
commit 191c7fdf30
2 changed files with 8 additions and 2 deletions

View File

@ -395,8 +395,11 @@ static wil::com_ptr_nothrow<IPin> GetFirstPin(IBaseFilter* pBF, PIN_DIRECTION di
//
GSCapture::GSCapture()
: m_capturing(false), m_frame(0)
: m_capturing(false)
, m_out_dir("/tmp/GS_Capture") // FIXME Later add an option
#if defined(__unix__)
, m_frame(0)
#endif
{
}
@ -545,6 +548,9 @@ bool GSCapture::BeginCapture(float fps, GSVector2i recommendedResolution, float
m_capturing = true;
filename = m_out_dir + "/audio_recording.wav";
return true;
#else
// FIXME: MACOS
return false;
#endif
}

View File

@ -28,7 +28,6 @@ class GSCapture
std::recursive_mutex m_lock;
bool m_capturing;
GSVector2i m_size;
u64 m_frame;
std::string m_out_dir;
int m_threads;
@ -39,6 +38,7 @@ class GSCapture
#elif defined(__unix__)
u64 m_frame;
std::vector<std::unique_ptr<GSPng::Worker>> m_workers;
int m_compression_level;