From b09ef67d1381b2c04ad4b2804bce7e1adfdd8575 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Mon, 23 Mar 2015 10:51:13 +0100 Subject: Remove ENABLE_DEBUG_LOGFILE define from version.h --- decoder/LAVAudio/LAVAudio.cpp | 4 ++-- decoder/LAVVideo/LAVVideo.cpp | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'decoder') 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() -- cgit v1.2.3