]> git.sesse.net Git - vlc/commitdiff
Backported Peter Surda patch.
authorChristophe Massiot <massiot@videolan.org>
Thu, 20 Dec 2001 16:46:40 +0000 (16:46 +0000)
committerChristophe Massiot <massiot@videolan.org>
Thu, 20 Dec 2001 16:46:40 +0000 (16:46 +0000)
plugins/x11/vout_xvideo.c

index 994846c9aedd5b6d3e6f9de535af7a011f3d14a6..4d04e044ee1c7a119310870e96e1c20ab7e0bc38 100644 (file)
@@ -2,7 +2,7 @@
  * vout_xvideo.c: Xvideo video output display method
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: vout_xvideo.c,v 1.36.2.2 2001/12/17 03:48:12 sam Exp $
+ * $Id: vout_xvideo.c,v 1.36.2.3 2001/12/20 16:46:40 massiot Exp $
  *
  * Authors: Shane Harper <shanegh@optusnet.com.au>
  *          Vincent Seguin <seguin@via.ecp.fr>
@@ -403,7 +403,7 @@ static void vout_Destroy( vout_thread_t *p_vout )
  * XXX  Should "factor-out" common code in this and the "same" fn in the x11
  * XXX  plugin!
  *****************************************************************************/
-static __inline__ void vout_Seek( int i_seek )
+static __inline__ void vout_Seek( off_t i_seek )
 {
     int i_tell = p_main->p_intf->p_input->stream.p_selected_area->i_tell;
 
@@ -582,6 +582,14 @@ static int vout_Manage( vout_thread_t *p_vout )
                     input_SetStatus( p_main->p_intf->p_input,
                                      INPUT_STATUS_PAUSE );
                     break;
+
+                case Button4:
+                    vout_Seek( 15 );
+                    break;
+
+                case Button5:
+                    vout_Seek( -15 );
+                    break;
             }
         }
         /* Mouse release */