summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-16 02:01:53 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-16 02:01:53 +0000
commit6b153ea714303fda5dd0248f71e76275c3a342ef (patch)
treeb1b749e29ba16076d5eae192db42ae4789fa0829 /libvo
parenta5737c25ee7a00b75ba58fb78c27b37fbc14cc4f (diff)
downloadmpv-6b153ea714303fda5dd0248f71e76275c3a342ef.tar.bz2
mpv-6b153ea714303fda5dd0248f71e76275c3a342ef.tar.xz
Streamline enter-key behaviour suggested by Christian Ohm and disable I420/IYUV because
SDL seems buggy with it (doesn't use hw accel, although XVideo hw supports it). YV12 will be used instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6441 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_sdl.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c
index 15e287a042..ccb910e00b 100644
--- a/libvo/vo_sdl.c
+++ b/libvo/vo_sdl.c
@@ -1188,7 +1188,7 @@ static void check_events (void)
struct sdl_priv_s *priv = &sdl_priv;
SDL_Event event;
SDLKey keypressed = 0;
- static int firstcheck = 0, modifiers = 0;
+ static int modifiers = 0;
/* Poll the waiting SDL Events */
while ( SDL_PollEvent(&event) ) {
@@ -1308,7 +1308,9 @@ static void check_events (void)
else switch(keypressed){
case SDLK_RETURN:
- if (!firstcheck) { firstcheck = 1; break; }
+ SDL_ShowCursor(1);
+ mplayer_put_key(KEY_ENTER);
+ break;
case SDLK_ESCAPE:
case SDLK_q:
SDL_ShowCursor(1);
@@ -1579,8 +1581,9 @@ query_format(uint32_t format)
{
switch(format){
case IMGFMT_YV12:
- case IMGFMT_I420:
- case IMGFMT_IYUV:
+// it seems buggy (not hw accelerated), so just use YV12 instead!
+// case IMGFMT_I420:
+// case IMGFMT_IYUV:
case IMGFMT_YUY2:
case IMGFMT_UYVY:
case IMGFMT_YVYU: