Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-03-23 12:51:13 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2015-03-23 12:51:13 +0300
commitb09ef67d1381b2c04ad4b2804bce7e1adfdd8575 (patch)
tree4690d59248123a46a96351d52ab782a68bb07310 /decoder
parentb5296836358a0a5e942cd6c984c6179766dbf962 (diff)
Remove ENABLE_DEBUG_LOGFILE define from version.h
Diffstat (limited to 'decoder')
-rw-r--r--decoder/LAVAudio/LAVAudio.cpp4
-rw-r--r--decoder/LAVVideo/LAVVideo.cpp6
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()