Commit b894e2c5 authored by Laurent Aimar's avatar Laurent Aimar

all: don't use input_Seek. Btw, sdl shouldn't do the seek itself, and

 follow the key-pressed scheme (I have removed thoses seeks).
 Someone to do the work ?
parent 405e39a5
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* sdl.c: SDL video output display method * sdl.c: SDL video output display method
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2001 VideoLAN * Copyright (C) 1998-2001 VideoLAN
* $Id: sdl.c,v 1.14 2003/10/25 00:49:14 sam Exp $ * $Id$
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Pierre Baillet <oct@zoy.org> * Pierre Baillet <oct@zoy.org>
...@@ -405,11 +405,9 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -405,11 +405,9 @@ static int Manage( vout_thread_t *p_vout )
break; break;
case 4: case 4:
input_Seek( p_vout, 15, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
break; break;
case 5: case 5:
input_Seek( p_vout, -15, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
break; break;
} }
break; break;
...@@ -475,19 +473,15 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -475,19 +473,15 @@ static int Manage( vout_thread_t *p_vout )
break; break;
case SDLK_LEFT: case SDLK_LEFT:
input_Seek( p_vout, -5, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
break; break;
case SDLK_RIGHT: case SDLK_RIGHT:
input_Seek( p_vout, 5, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
break; break;
case SDLK_UP: case SDLK_UP:
input_Seek( p_vout, 60, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
break; break;
case SDLK_DOWN: case SDLK_DOWN:
input_Seek( p_vout, -60, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
break; break;
case SDLK_b: case SDLK_b:
......
...@@ -632,14 +632,12 @@ static int ManageVideo( vout_thread_t *p_vout ) ...@@ -632,14 +632,12 @@ static int ManageVideo( vout_thread_t *p_vout )
var_Get( p_vout, "mouse-button-down", &val ); var_Get( p_vout, "mouse-button-down", &val );
val.i_int |= 8; val.i_int |= 8;
var_Set( p_vout, "mouse-button-down", val ); var_Set( p_vout, "mouse-button-down", val );
input_Seek( p_vout, 15, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
break; break;
case Button5: case Button5:
var_Get( p_vout, "mouse-button-down", &val ); var_Get( p_vout, "mouse-button-down", &val );
val.i_int |= 16; val.i_int |= 16;
var_Set( p_vout, "mouse-button-down", val ); var_Set( p_vout, "mouse-button-down", val );
input_Seek( p_vout, -15, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment