diff options
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/LAVAudio/LAVAudio.cpp | 4 | ||||
-rw-r--r-- | decoder/LAVVideo/LAVVideo.cpp | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/decoder/LAVAudio/LAVAudio.cpp b/decoder/LAVAudio/LAVAudio.cpp index 59cda835..3f5729ab 100644 --- a/decoder/LAVAudio/LAVAudio.cpp +++ b/decoder/LAVAudio/LAVAudio.cpp @@ -98,7 +98,7 @@ CLAVAudio::CLAVAudio(LPUNKNOWN pUnk, HRESULT* phr) //DbgSetModuleLevel (LOG_CUSTOM2, DWORD_MAX); // Jitter statistics //DbgSetModuleLevel (LOG_CUSTOM5, DWORD_MAX); // Extensive timing options -#if ENABLE_DEBUG_LOGFILE +#ifdef LAV_DEBUG_RELEASE DbgSetLogFileDesktop(LAVC_AUDIO_LOG_FILE); #endif #else @@ -118,7 +118,7 @@ CLAVAudio::~CLAVAudio() m_hDllExtraDecoder = nullptr; } -#if defined(DEBUG) && ENABLE_DEBUG_LOGFILE +#if defined(DEBUG) && defined(LAV_DEBUG_RELEASE) DbgCloseLogFile(); #endif } diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp index 62cc15f2..05ac3b6c 100644 --- a/decoder/LAVVideo/LAVVideo.cpp +++ b/decoder/LAVVideo/LAVVideo.cpp @@ -88,7 +88,7 @@ CLAVVideo::CLAVVideo(LPUNKNOWN pUnk, HRESULT* phr) DbgSetModuleLevel (LOG_TRACE, DWORD_MAX); DbgSetModuleLevel (LOG_ERROR, DWORD_MAX); DbgSetModuleLevel (LOG_CUSTOM1, DWORD_MAX); // FFMPEG messages use custom1 -#if ENABLE_DEBUG_LOGFILE +#ifdef LAV_DEBUG_RELEASE DbgSetLogFileDesktop(LAVC_VIDEO_LOG_FILE); #endif #endif @@ -112,6 +112,10 @@ CLAVVideo::~CLAVVideo() SafeRelease(&m_SubtitleConsumer); SAFE_DELETE(m_pSubtitleInput); + +#if defined(DEBUG) && defined(LAV_DEBUG_RELEASE) + DbgCloseLogFile(); +#endif } HRESULT CLAVVideo::CreateTrayIcon() |