xbmc-pvr: update VDPAU fixes patch

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

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 diff --git a/xbmc/windowing/WinEventsSDL.cpp b/xbmc/windowing/WinEventsSDL.cpp
index afff390..2e8b869 100644 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 1.7.5.4