fixed: we always need to release the python thread state when we do anything locking...
authorspiff <spiff@xbmc.org>
Thu, 22 Dec 2011 14:10:45 +0000 (15:10 +0100)
committerspiff <spiff@xbmc.org>
Thu, 22 Dec 2011 14:10:45 +0000 (15:10 +0100)
xbmc/interfaces/python/XBPyThread.cpp

index fac009f..c9f0a12 100644 (file)
@@ -317,6 +317,7 @@ void XBPyThread::Process()
         CLog::Log(LOGINFO, "<unknown exception type>");
       }
 
+      PYXBMC::PyXBMCGUILock();
       CGUIDialogKaiToast *pDlgToast = (CGUIDialogKaiToast*)g_windowManager.GetWindow(WINDOW_DIALOG_KAI_TOAST);
       if (pDlgToast)
       {
@@ -334,6 +335,7 @@ void XBPyThread::Process()
         desc.Format(g_localizeStrings.Get(2100), script);
         pDlgToast->QueueNotification(CGUIDialogKaiToast::Error, g_localizeStrings.Get(257), desc);
       }
+      PYXBMC::PyXBMCGUIUnlock();
     }
 
     Py_XDECREF(exc_type);