Skip to content

Removed last PTS video seek workaround on subtitles#1990

Closed
CastagnaIT wants to merge 1 commit intoxbmc:Piersfrom
CastagnaIT:seek_workaround
Closed

Removed last PTS video seek workaround on subtitles#1990
CastagnaIT wants to merge 1 commit intoxbmc:Piersfrom
CastagnaIT:seek_workaround

Conversation

@CastagnaIT
Copy link
Copy Markdown
Collaborator

Description

It was used because Kodi core did not stream seek on subtitles when subtitles were enabled/disabled or when changing tracks (which is essentially similar)

Motivation and context

has been proposed a fix on kodi core that can cover also this lack
PR: xbmc/xbmc#27770
so this PR depends from it

How has this been tested?

stream with multiple subtitles:
-> enable / disable subtitles from different point of playback
-> change subtitles during playback

in both cases, subtiltes must result in-sync with video playback

tested also on multi-chapters (multi-periods) stream

Screenshots (if appropriate):

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that will cause existing functionality to change)
  • Cosmetic change (non-breaking change that doesn't touch code)
  • None of the above (please explain below)

Checklist:

  • I have read the Contributing document
  • My code follows the Code Guidelines of this project
  • My change requires a change to the Wiki documentation
  • I have updated the documentation accordingly

It was used because Kodi core did not stream seek on subtitles when subtitles were enabled/disabled or when changing tracks (which is essentially similar)
@CastagnaIT CastagnaIT added Type: Cleanup non-breaking change which removes non-working or unmaintained functionality v22 Piers labels Jan 31, 2026
constexpr uint64_t NO_VALUE = std::numeric_limits<uint64_t>::max();

// Kodi VideoPlayer internal buffer
constexpr uint64_t KODI_VP_BUFFER_SECS = 8;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this was wrong currently because video player buffer (queue) is not 8 seconds anymore from xbmc/xbmc#25360

Now is configurable and the default is 4s.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm not interested in changing it because the root of problem is in the VP side
anyway better a higher value than a low one since there is no way to obtain the current used value

@CastagnaIT
Copy link
Copy Markdown
Collaborator Author

closed because PR xbmc/xbmc#27770 dont fix anymore demuxers callbacks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Cleanup non-breaking change which removes non-working or unmaintained functionality v22 Piers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants