mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
xbmc-pvr: update VDPAU fixes patch
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
60bb712963
commit
24c7c2ed0a
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user