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:
Diffstat (limited to 'decoder/LAVVideo/LAVVideo.cpp')
-rw-r--r--decoder/LAVVideo/LAVVideo.cpp6
1 files changed, 5 insertions, 1 deletions
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()