mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
vlm: use float for rate
This commit is contained in:
parent
b28045789d
commit
e1edafe2d7
@ -76,7 +76,7 @@ typedef struct
|
||||
int64_t i_length; /*< vlm media instance vlm media item length */
|
||||
double d_position; /*< vlm media instance position in stream */
|
||||
bool b_paused; /*< vlm media instance is paused */
|
||||
int i_rate; // normal is INPUT_RATE_DEFAULT
|
||||
float f_rate; // normal is 1.0f
|
||||
} vlm_media_instance_t;
|
||||
|
||||
#if 0
|
||||
@ -324,7 +324,7 @@ static inline void vlm_media_instance_Init( vlm_media_instance_t *p_instance )
|
||||
p_instance->i_length = 0;
|
||||
p_instance->d_position = 0.0;
|
||||
p_instance->b_paused = false;
|
||||
p_instance->i_rate = INPUT_RATE_DEFAULT;
|
||||
p_instance->f_rate = 1.0f;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1126,8 +1126,7 @@ static int vlm_ControlMediaInstanceGets( vlm_t *p_vlm, int64_t id, vlm_media_ins
|
||||
p_idsc->d_position = var_GetFloat( p_instance->p_input, "position" );
|
||||
if( var_GetInteger( p_instance->p_input, "state" ) == PAUSE_S )
|
||||
p_idsc->b_paused = true;
|
||||
p_idsc->i_rate = INPUT_RATE_DEFAULT
|
||||
/ var_GetFloat( p_instance->p_input, "rate" );
|
||||
p_idsc->f_rate = var_GetFloat( p_instance->p_input, "rate" );
|
||||
}
|
||||
|
||||
TAB_APPEND( i_idsc, pp_idsc, p_idsc );
|
||||
|
Loading…
Reference in New Issue
Block a user