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

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexwild <alexwild@users.sourceforge.net>2007-09-15 11:37:33 +0400
committeralexwild <alexwild@users.sourceforge.net>2007-09-15 11:37:33 +0400
commit70cdf493fcc822774d7f13e5a10e080fbdb36359 (patch)
tree502de9656f371cba04a1c6eed8252ae026bc1422 /src/apps/mplayerc/LcdSupport.cpp
parentc7e8e9efc5cfd236efccfa69569a61455f7ccd6c (diff)
make sure language dlls are searched in the progdir, not curdir; cleanup lcd thread init
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@218 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/LcdSupport.cpp')
-rw-r--r--src/apps/mplayerc/LcdSupport.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/apps/mplayerc/LcdSupport.cpp b/src/apps/mplayerc/LcdSupport.cpp
index aa7d1046f..69fdc846b 100644
--- a/src/apps/mplayerc/LcdSupport.cpp
+++ b/src/apps/mplayerc/LcdSupport.cpp
@@ -202,6 +202,9 @@ CMPC_Lcd::CMPC_Lcd(void)
hBmp[PS_PAUSE] = CreateBitmap(14, 7, 1, 1, bPause);
hBmp[PS_STOP] = CreateBitmap( 8, 7, 1, 1, bStop);
+ InitializeCriticalSection(&cs);
+ hLCD_UpdateThread = 0;
+
// lcd init
ZeroMemory(&m_ConnCtx, sizeof(m_ConnCtx));
@@ -212,7 +215,6 @@ CMPC_Lcd::CMPC_Lcd(void)
m_ConnCtx.onConfigure.configContext = NULL;
m_ConnCtx.connection = LGLCD_INVALID_CONNECTION; // the "connection" member will be returned upon return
- InitializeCriticalSection(&cs);
if (m_Output.Initialize(&m_ConnCtx) != ERROR_SUCCESS || // Initialize the output object
m_Manager.Initialize() != ERROR_SUCCESS)
{
@@ -229,7 +231,6 @@ CMPC_Lcd::CMPC_Lcd(void)
m_Output.Update(GetTickCount()); // This invokes OnUpdate for the active screen
m_Output.Draw(); // This invokes OnDraw for the active screen
- hLCD_UpdateThread = 0;
if (m_Output.IsOpened())
{
Thread_Loop = true;