Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demux: use a slightly better hack when seeking with dvd/bd #15882

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

Dudemanguy
Copy link
Member

Basically just bits of a9d83ea that was removed and ported to here. Not really smart but it seems like flushing buffers during seek generally leads to better behavior and avoids some errors. The additional stream_seek call that was being performed is definitely bogus (will never work and spams errors). So that is skipped for bd/dvd. SEEK_FORCE is no longer needed. Instead demux_disc calls drop_buffers on the slave demuxer (i.e. lavf).

Copy link

github-actions bot commented Feb 16, 2025

Download the artifacts for this pull request:

Windows
macOS

Copy link
Contributor

@kasper93 kasper93 left a comment

Choose a reason for hiding this comment

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

Looks ok, wm4 is probably furious now that someone cares about dvd :)

Basically just bits of a9d83ea that was
removed and ported to here. Not really smart but it seems like flushing
buffers during seek generally leads to better behavior and avoids some
errors. The additional stream_seek call that was being performed is
definitely bogus (will never work and spams errors). So that is skipped
for bd/dvd. SEEK_FORCE is no longer needed. Instead demux_disc calls
drop_buffers on the slave demuxer (i.e. lavf).
@Dudemanguy Dudemanguy merged commit 4394ca5 into mpv-player:master Feb 20, 2025
26 checks passed
@Dudemanguy Dudemanguy deleted the disc-seek branch February 20, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants