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
--ao=pipewire not working with pipewire 0.3.75
#11995
Comments
Also reported at https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3374 |
Doing a pw_thread_loop_wait() without checking conditions is invalid. The thread loop could be signalled for other reasons and in this case the wait needs to continue. PipeWire added such additional signaling in commit 33be898130f0 ("thread-loop: signal when started"). This meant that for_each_sink would return before the callbacks have fired and session_has_sink() would incorrectly return "false", failing the initialization of ao_pipewire. Fixes mpv-player#11995
This should be fixed by #11996, could you validate? |
when I try to compile it as described in readme,
|
I can confirm that #11996 fixes this for me under pipewire 0.3.75 w/ |
Is your working directory the mpv source directory? |
yes, but it seems to work for @q234rty so I would believe it works just as expected. |
Can you give me a full transcript of your shell? |
You are still on the master branch of my repository. For your convenience I pushed the new bugfix to my master branch. |
oh, whoops, I was supposed to |
yes, works just fine with your patch. |
Doing a pw_thread_loop_wait() without checking conditions is invalid. The thread loop could be signalled for other reasons and in this case the wait needs to continue. PipeWire added such additional signaling in commit 33be898130f0 ("thread-loop: signal when started"). This meant that for_each_sink would return before the callbacks have fired and session_has_sink() would incorrectly return "false", failing the initialization of ao_pipewire. Fixes #11995
works, thanks for the fix!! |
Important Information
Provide following Information:
0.35.1-dirty
Archlinux
archlinux/extra
no
sway 1.8.1
If you're not using git master or the latest release, update.
Releases are listed here: https://github.com/mpv-player/mpv/releases
Reproduction steps
use latest pipewire release (
0.3.75
)open something with
mpv --ao=pipewire
Expected behavior
play audio
Actual behavior
no audio (unless specified backup) - pipewire doesn't work with mpv (but works through
pulse
wrapper)Log file
Sample files
any file with audio
The text was updated successfully, but these errors were encountered: