[vlc-commits] input: fix seeking for external subtitles when changing chapters

Jonas Knöll git at videolan.org
Mon Feb 17 11:56:57 CET 2020


vlc | branch: master | Jonas Knöll <jonas.knoell at googlemail.com> | Sat Feb 15 18:48:02 2020 +0100| [a28b61d3980554b11119b9693e68026c13f5e3ed] | committer: Thomas Guillem

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>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a28b61d3980554b11119b9693e68026c13f5e3ed
---

 src/input/input.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/input/input.c b/src/input/input.c
index 7ba4f0d9f9..2dd0bf0982 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2171,6 +2171,8 @@ static bool Control( input_thread_t *p_input,
             demux_Control( priv->master->p_demux,
                            DEMUX_SET_SEEKPOINT, i_seekpoint );
             input_SendEventSeekpoint( p_input, i_title, i_seekpoint );
+            if( priv->i_slave > 0 )
+                SlaveSeek( p_input );
             break;
         }
 



More information about the vlc-commits mailing list