diff options
author | Jim Carroll <thecarrolls@jiminger.com> | 2012-11-09 13:22:24 -0500 |
---|---|---|
committer | Jim Carroll <thecarrolls@jiminger.com> | 2012-11-09 13:23:58 -0500 |
commit | 18e186eed5c17beefdb4bd9cadf2f35bfb558ce8 (patch) | |
tree | a481bfcb58b156d16ac1c67a92d60b5aa5c52504 | |
parent | cbfd2846d58fbe17ecf88f2b1600dc761e21974f (diff) |
[fix] internal calls to the now-deprecated lock/unlock xbmcgui functionality have been fixed. This was creating WARN log message.
-rw-r--r-- | xbmc/interfaces/legacy/ModuleXbmcgui.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/xbmc/interfaces/legacy/ModuleXbmcgui.cpp b/xbmc/interfaces/legacy/ModuleXbmcgui.cpp index 814dd3ebbb..b0c6cddf23 100644 --- a/xbmc/interfaces/legacy/ModuleXbmcgui.cpp +++ b/xbmc/interfaces/legacy/ModuleXbmcgui.cpp @@ -20,7 +20,7 @@ */ #include "ModuleXbmcgui.h" - +#include "LanguageHook.h" #include "guilib/GraphicContext.h" #include "guilib/GUIWindowManager.h" #include "utils/log.h" @@ -41,18 +41,16 @@ namespace XBMCAddon long getCurrentWindowId() { - lock(); - int id = g_windowManager.GetActiveWindow(); - unlock(); - return id; + DelayedCallGuard dg; + CSingleLock gl(g_graphicsContext); + return g_windowManager.GetActiveWindow(); } long getCurrentWindowDialogId() { - lock(); - int id = g_windowManager.GetTopMostModalDialogID(); - unlock(); - return id; + DelayedCallGuard dg; + CSingleLock gl(g_graphicsContext); + return g_windowManager.GetTopMostModalDialogID(); } } } |