Commit 70efc50c authored by Pierre Ynard's avatar Pierre Ynard

display sout: use CLOCK_FREQ

parent 383146f3
......@@ -42,7 +42,7 @@
#define AUDIO_LONGTEXT N_( "Enable/disable audio rendering." )
#define VIDEO_TEXT N_("Enable video")
#define VIDEO_LONGTEXT N_( "Enable/disable video rendering." )
#define DELAY_TEXT N_("Delay")
#define DELAY_TEXT N_("Delay (ms)")
#define DELAY_LONGTEXT N_( "Introduces a delay in the display of the stream." )
static int Open ( vlc_object_t * );
......@@ -109,7 +109,7 @@ static int Open( vlc_object_t *p_this )
p_sys->b_audio = var_GetBool( p_stream, SOUT_CFG_PREFIX"audio" );
p_sys->b_video = var_GetBool( p_stream, SOUT_CFG_PREFIX "video" );
p_sys->i_delay = var_GetInteger( p_stream, SOUT_CFG_PREFIX "delay" );
p_sys->i_delay *= 1000;
p_sys->i_delay = p_sys->i_delay * CLOCK_FREQ / 1000;
p_stream->pf_add = Add;
p_stream->pf_del = Del;
......
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