xbmc: update VDPAU fixes patch

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-12-13 14:07:00 +01:00
parent 91befb2e8e
commit 60bb712963

View File

@ -71,26 +71,6 @@ Subject: [PATCH 2/2] lock graphics context when polling events, display
diff --git a/xbmc/windowing/WinEventsSDL.cpp b/xbmc/windowing/WinEventsSDL.cpp
index afff390..2e8b869 100644
--- a/xbmc/windowing/WinEventsSDL.cpp
+++ b/xbmc/windowing/WinEventsSDL.cpp
@@ -216,8 +216,16 @@ bool CWinEventsSDL::MessagePump()
SDL_Event event;
bool ret = false;
- while (SDL_PollEvent(&event))
+ while (1)
{
+ {
+#if defined(HAS_GLX)
+ CSingleLock lock(g_graphicsContext);
+#endif
+ if (!SDL_PollEvent(&event))
+ break;
+ }
+
switch(event.type)
{
case SDL_QUIT:
--
1.7.5.4