Commit 7cb79b9f authored by Renaud Dartus's avatar Renaud Dartus

Cosmetics changes

parent 40c292e6
......@@ -2,7 +2,7 @@
* intf_sdl.c: SDL interface plugin
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: intf_sdl.c,v 1.28 2001/02/08 00:46:12 reno Exp $
* $Id: intf_sdl.c,v 1.29 2001/02/08 01:06:11 reno Exp $
*
* Authors:
*
......@@ -149,19 +149,19 @@ void intf_SDLManage( intf_thread_t *p_intf )
break;
case SDLK_a:
i_rate = p_intf->p_input->stream.control.i_rate;
if ( i_rate/2 >= MINIMAL_RATE )
input_Forward( p_intf->p_input, i_rate/2 );
i_rate = p_intf->p_input->stream.control.i_rate/2;
if ( i_rate >= MINIMAL_RATE )
input_Forward( p_intf->p_input, i_rate );
break;
case SDLK_s:
i_rate = p_intf->p_input->stream.control.i_rate;
if ( i_rate*2 <= MAXIMAL_RATE )
i_rate = p_intf->p_input->stream.control.i_rate*2;
if ( i_rate <= MAXIMAL_RATE )
{
/* Compensation of int truncature */
if ( i_rate*2 > 500 && i_rate*2 < 1000 )
i_rate = 1000/2;
input_Forward( p_intf->p_input, i_rate*2 );
if ( i_rate > 500 && i_rate < 1000 )
i_rate = 1000;
input_Forward( p_intf->p_input, i_rate );
}
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