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

Cannot seek through playback with MediaSource in scene #11857

Open
J0sephDavis opened this issue Feb 13, 2025 · 0 comments
Open

Cannot seek through playback with MediaSource in scene #11857

J0sephDavis opened this issue Feb 13, 2025 · 0 comments

Comments

@J0sephDavis
Copy link

Operating System Info

Other

Other OS

Linux Mint 22.1 x86_64

OBS Studio Version

31.0.1

OBS Studio Version (Other)

built from master (currently 80ea1b1)

OBS Studio Log URL

https://obsproject.com/logs/di8c9SeMOZc6UNAD

OBS Studio Crash Log URL

No response

Expected Behavior

Seeking across an audio track in a MediaSource using the UI slider will result in playback continuing from that point.

Current Behavior

Using the seeking slider with a MediaSource results in the media source reseting playback (going back to the beginning if set to loop, otherwise stopping).

Steps to Reproduce

  1. Add a Media Source to the scene.
  2. Select an audio track from your computer.
  3. Begin Playback.
  4. attempt to move the current timestamp somewhere else in the track.

Anything else we should know?

If you attempt to seek in the Media Source, seekto() will be called in the mp_media_thread (media.c)
When seekto is called it flushes the audio decoder with mp_decoder_flush(), this sets the frame_ready status of the audio decoder to false. On the next tick of the main thread mp_media_eof will be called and determine that it has reached EOF (!a.frame_ready). Given that it believes it has reached EOF, mp_media_eof stops playback or loops the playback.

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

No branches or pull requests

1 participant