[vlc-devel] [PATCH] fixes seeking for external subtitles when changing chapters

Jonas Knöll jonas.knoell at googlemail.com
Sat Feb 15 18:48:02 CET 2020


this is a small patch to allow 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.


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

diff --git a/src/input/input.c b/src/input/input.c
index 7ba4f0d..a556161 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 );


More information about the vlc-devel mailing list