VLC 播放器 (Windows) 中默认的字幕偏移步长为 50 毫秒(热键为g/ h)。我希望它更大(例如 500 毫秒或 1 秒)。
有没有办法配置该值(无需重新编译)(首选项或注册表)?
编辑:
实际上,我找到了处理这个偏移量的代码(是的,它是硬编码的):
模块/控制/热键.c
else if( i_action == ACTIONID_SUBDELAY_DOWN )
{
int64_t i_delay = var_GetTime( p_input, "spu-delay" );
i_delay -= 50000; /* 50 ms */
var_SetTime( p_input, "spu-delay", i_delay );
ClearChannels( p_intf, p_vout );
DisplayMessage( p_vout, SPU_DEFAULT_CHANNEL,
_( "Subtitle delay %i ms" ),
(int)(i_delay/1000) );
}
else if( i_action == ACTIONID_SUBDELAY_UP )
{
int64_t i_delay = var_GetTime( p_input, "spu-delay" );
i_delay += 50000; /* 50 ms …Run Code Online (Sandbox Code Playgroud)