[vlc-devel] [PATCH 2/2] demux/subtitle: only fetch "sub-fps" variable
Thomas Guillem
thomas at gllm.fr
Wed Jul 18 13:14:27 CEST 2018
Since this module handle the same way "sub-fps" and "sub-original-fps" (and
because fetching "sub-original-fps" from the input is a HACK).
---
modules/demux/subtitle.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index b62f83e86f..9af186edf9 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -335,13 +335,6 @@ static int Open ( vlc_object_t *p_this )
p_sys->props.sami.psz_start = NULL;
/* Get the FPS */
- f_fps = p_demux->p_input ? var_GetFloat( p_demux->p_input, "sub-original-fps" ) : 0.0f;
- if( f_fps >= 1.f )
- p_sys->props.i_microsecperframe = llroundf( 1000000.f / f_fps );
-
- msg_Dbg( p_demux, "Movie fps: %f", (double) f_fps );
-
- /* Check for override of the fps */
f_fps = var_CreateGetFloat( p_demux, "sub-fps" );
if( f_fps >= 1.f )
{
--
2.18.0
More information about the vlc-devel
mailing list