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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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).

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

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 :)

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