[vlc-commits] input: fix seeking for external subtitles when changing chapters
Jonas Knöll
git at videolan.org
Tue Feb 18 10:36:49 CET 2020
vlc/vlc-3.0 | branch: master | Jonas Knöll <jonas.knoell at googlemail.com> | Sat Feb 15 18:48:02 2020 +0100| [a33bee3ab71c4a0406fb4ddbae447f7b93f1fd30] | committer: Jean-Baptiste Kempf
input: fix seeking for external subtitles when changing chapters
This commit allows external subtitles to be shown correctly when changing to
previous chapters. Currently external subtitles would not be shown until the
played chapter was reached again. Seeking to different time points does not
have this issue. This seems to be the case because there is no SlaveSeek call
for INPUT_CONTROL_SET_SEEKPOINT_PREV, which this patch now adds.
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
(cherry picked from commit a28b61d3980554b11119b9693e68026c13f5e3ed)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a33bee3ab71c4a0406fb4ddbae447f7b93f1fd30
---
src/input/input.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/input/input.c b/src/input/input.c
index c97e78adea..1b8a2eb83d 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2290,6 +2290,8 @@ static bool Control( input_thread_t *p_input,
demux_Control( input_priv(p_input)->master->p_demux,
DEMUX_SET_SEEKPOINT, i_seekpoint );
input_SendEventSeekpoint( p_input, i_title, i_seekpoint );
+ if( input_priv(p_input)->i_slave > 0 )
+ SlaveSeek( p_input );
break;
}
More information about the vlc-commits
mailing list