]> git.sesse.net Git - vlc/commitdiff
Revert "SDL: use key thread (partially fix #3661)"
authorLaurent Aimar <fenrir@videolan.org>
Sun, 30 May 2010 12:25:38 +0000 (14:25 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 30 May 2010 12:25:38 +0000 (14:25 +0200)
This reverts commit a0c1d2ccdd62ef333e30f2fc9717fd0bf44ec4a3.

modules/video_output/Modules.am
modules/video_output/sdl.c

index 92f28feefaf493a01de0c87cb0175e7dabee4632..b0a5b4b5216496a6a7130fd5230874e958ab7c2b 100644 (file)
@@ -7,7 +7,7 @@ LIBTOOL=@LIBTOOL@ --tag=CC
 SOURCES_aa = aa.c
 SOURCES_caca = caca.c
 SOURCES_fb = fb.c
-SOURCES_vout_sdl = sdl.c keythread.h keythread.c
+SOURCES_vout_sdl = sdl.c
 SOURCES_snapshot = snapshot.c
 SOURCES_directfb = directfb.c
 SOURCES_vmem = vmem.c
index 84af7d55df4e3731c464fcaca6c38ab00aba7e10..17448a0e7634a2ae21c93718916ccff4d4a94f55 100644 (file)
@@ -35,7 +35,6 @@
 #include <vlc_plugin.h>
 #include <vlc_vout_display.h>
 #include <vlc_picture_pool.h>
-#include "keythread.h"
 
 #include <assert.h>
 
@@ -100,7 +99,6 @@ struct vout_display_sys_t {
 
     /* */
     picture_pool_t       *pool;
-    key_thread_t         *keys;
 };
 
 /**
@@ -334,8 +332,6 @@ static int Open(vlc_object_t *object)
 
     /* */
     vout_display_SendEventDisplaySize(vd, display_width, display_height, vd->cfg->is_fullscreen);
-
-    sys->keys = vlc_CreateKeyThread (vd);
     return VLC_SUCCESS;
 
 error:
@@ -362,8 +358,6 @@ static void Close(vlc_object_t *object)
     vout_display_t *vd = (vout_display_t *)object;
     vout_display_sys_t *sys = vd->sys;
 
-    vlc_DestroyKeyThread(sys->keys);
-
     if (sys->pool)
         picture_pool_Delete(sys->pool);
 
@@ -602,7 +596,7 @@ static void Manage(vout_display_t *vd)
                 key |= KEY_MODIFIER_CTRL;
             if (event.key.keysym.mod & KMOD_ALT)
                 key |= KEY_MODIFIER_ALT;
-            vlc_EmitKey(sys->keys, key);
+            vout_display_SendEventKey(vd, key);
             break;
         }
 
@@ -708,3 +702,4 @@ static int ConvertKey(SDLKey sdl_key)
     }
     return 0;
 }
+