Subtitle position isn't affected by SubtitleShiftUp/Down until the first line is displayed
Bug report
Describe the bug
SubtitleShiftUp/Down only affects the actual subtitle position after the first line of the subtitle is displayed. This includes resumed videos. The subtitle reposition slider appears but is set to zero (not the position of where the subtitle is set to). Changes can be made but once a subtitle line is displayed the subtitle position is set to the correct value and adjustments work as expected.
Expected Behavior
Subtitle position changes using SubtitleShiftUp/Down should be allowed from the start of the video.
Actual Behavior
Until the first subtitle line is displayed, the subtitle reposition slider appears but is set to zero (not the position of where the subtitle is set to).
Possible Fix
Subtitle position is calculated when a subtitle is to be displayed for the video or one is selected, allowing the position to be changed during titles. It's especially jarring with forced subs where the first line can be many minutes into the video.
To Reproduce
Steps to reproduce the behavior:
- Set subtitles to Bottom of Screen (The Vertical Position is unimportant).
- Bind SubtitleShiftUp/Down to keys
- Start a video that has subtitles.
- Use SubtitleShiftUp/Down before a subtitle appears (notice the zero value in the Sub position slider).
- Use the SubtitleShiftUp/Down after the first subtitle is displayed and again check the slider.
Debuglog
The debuglog can be found here: https://paste.kodi.tv/moqodefegi.kodi
Screenshots
Here are some links or screenshots to help explain the problem:
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
Your Environment
Used Operating system:
Android
iOS
tvOS
Linux
macOS
Windows
Windows UWP
Operating system version/name:
Kodi version:
Tested in Kodi 20.5 and 21.rc1
Default Estuary
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.
Source: xbmc/xbmc