[vlc-devel] commit: Cosmetics (input) (Laurent Aimar )
git version control
git at videolan.org
Sun Mar 8 19:36:42 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Mar 8 18:21:08 2009 +0100| [a9c070faa0b320fa2ff5474e11948a0a0c866f40] | committer: Laurent Aimar
Cosmetics (input)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a9c070faa0b320fa2ff5474e11948a0a0c866f40
---
src/input/input.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 5a17c97..0735573 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2398,6 +2398,7 @@ static int InputSourceInit( input_thread_t *p_input,
/* Get infos from access */
if( !p_input->b_preparsing )
{
+ bool b_can_seek;
access_Control( in->p_access,
ACCESS_GET_PTS_DELAY, &in->i_pts_delay );
@@ -2414,15 +2415,13 @@ static int InputSourceInit( input_thread_t *p_input,
in->b_can_rate_control = in->b_can_pace_control;
in->b_rescale_ts = true;
- access_Control( in->p_access, ACCESS_CAN_PAUSE,
- &in->b_can_pause );
+ access_Control( in->p_access, ACCESS_CAN_PAUSE, &in->b_can_pause );
var_SetBool( p_input, "can-pause", in->b_can_pause || !in->b_can_pace_control ); /* XXX temporary because of es_out_timeshift*/
var_SetBool( p_input, "can-rate", !in->b_can_pace_control || in->b_can_rate_control ); /* XXX temporary because of es_out_timeshift*/
var_SetBool( p_input, "can-rewind", !in->b_rescale_ts && !in->b_can_pace_control );
- access_Control( in->p_access, ACCESS_CAN_SEEK,
- &val.b_bool );
- var_Set( p_input, "can-seek", val );
+ access_Control( in->p_access, ACCESS_CAN_SEEK, &b_can_seek );
+ var_SetBool( p_input, "can-seek", b_can_seek );
}
/* */
More information about the vlc-devel
mailing list