[vlc-commits] demux/subtitle: only fetch "sub-fps" variable
Thomas Guillem
git at videolan.org
Wed Jul 18 18:07:02 CEST 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jul 18 13:11:31 2018 +0200| [c6227f7fa6fa239b99c591fa0fdfcadafdae9d48] | committer: Thomas Guillem
demux/subtitle: only fetch "sub-fps" variable
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).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6227f7fa6fa239b99c591fa0fdfcadafdae9d48
---
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 )
{
More information about the vlc-commits
mailing list