]> git.sesse.net Git - vlc/commitdiff
all: don't use input_Seek. Btw, sdl shouldn't do the seek itself, and
authorLaurent Aimar <fenrir@videolan.org>
Mon, 7 Jun 2004 18:30:46 +0000 (18:30 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 7 Jun 2004 18:30:46 +0000 (18:30 +0000)
 follow the key-pressed scheme (I have removed thoses seeks).
 Someone to do the work ?

modules/video_output/sdl.c
modules/video_output/x11/xcommon.c

index 97ad9cb9d539b8cd4dde10892e704ca737627ebb..8f791d54ba65edf1a0e3b0b641c21fdeb9f1d6bf 100644 (file)
@@ -2,7 +2,7 @@
  * sdl.c: SDL video output display method
  *****************************************************************************
  * 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>
  *          Pierre Baillet <oct@zoy.org>
@@ -405,11 +405,9 @@ static int Manage( vout_thread_t *p_vout )
                 break;
 
             case 4:
-                input_Seek( p_vout, 15, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
                 break;
 
             case 5:
-                input_Seek( p_vout, -15, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
                 break;
             }
             break;
@@ -475,19 +473,15 @@ static int Manage( vout_thread_t *p_vout )
                 break;
 
             case SDLK_LEFT:
-                input_Seek( p_vout, -5, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
                 break;
 
             case SDLK_RIGHT:
-                input_Seek( p_vout, 5, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
                 break;
 
             case SDLK_UP:
-                input_Seek( p_vout, 60, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
                 break;
 
             case SDLK_DOWN:
-                input_Seek( p_vout, -60, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
                 break;
 
             case SDLK_b:
index 0b7180d392a5a39e0a39f50b1879c35e333ce4c2..9d23a01a17ba1e224a3d5da0d9f421a1db6d0f55 100644 (file)
@@ -632,14 +632,12 @@ static int ManageVideo( vout_thread_t *p_vout )
                     var_Get( p_vout, "mouse-button-down", &val );
                     val.i_int |= 8;
                     var_Set( p_vout, "mouse-button-down", val );
-                    input_Seek( p_vout, 15, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
                     break;
 
                 case Button5:
                     var_Get( p_vout, "mouse-button-down", &val );
                     val.i_int |= 16;
                     var_Set( p_vout, "mouse-button-down", val );
-                    input_Seek( p_vout, -15, INPUT_SEEK_SECONDS | INPUT_SEEK_CUR );
                     break;
             }
         }