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

setNextMedia weird behavior #59

Open
alexcristd opened this issue Jun 6, 2022 · 3 comments
Open

setNextMedia weird behavior #59

alexcristd opened this issue Jun 6, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@alexcristd
Copy link

Hello,

Using Qt5 with MinGW 8.1.0 64bit on Windows 10 64bit, and MDK 0.14.2 (nightly as of today).

I attached a sample app.
seek.zip

I'm experiencing 2 issues with setNextMedia:

  1. calling setNextMedia() twice with a valid string causes the app to freeze. It doesn't crash, but the window freezes, seems like a deadlock or something. In the sample app, if you press Play twice (without pressing Pause between), it will freeze.

A workaround is to call setNextMedia(nullptr) before calling it with a valid string, and this avoids the freeze. But I think this should be fixed internally.

  1. calling setNextMedia(nullptr) (as per issue (1) ), the video area flickers. In the sample code, pressing pause causes the flicker.

If either of the issues is fixed, the other one becomes less important, but I think both should be fixed to avoid problems in other scenarios.

If you need more details, let me know. Thanks!

@wang-bin wang-bin added the bug Something isn't working label Jun 17, 2022
@wang-bin wang-bin self-assigned this Jun 17, 2022
@wang-bin
Copy link
Owner

calling setNextMedia(nullptr) (as per issue (1) ), the video area flickers. In the sample code, pressing pause causes the flicker.

add SetGlobalOption("videoout.clear_on_stop", 0);

@alexcristd
Copy link
Author

Thanks! Seems to fix the flicker.

However, is this the appropriate way it should be done, or is it just a temporary workaround? It puzzles me because playback is not stopped, it's only paused, and the image buffer is not completely cleared, the image remains on the screen while paused, but it just blinks once.

@wang-bin
Copy link
Owner

yes. image won't be cleared if playback is stopped. but if the state is paused, it's a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants