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

pulseaudio: Retry until ready (w/ timeout) #417

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

orestisfl
Copy link
Member

No description provided.

This is a minor issue but immediately after pulse_initialize() is called
for the first time, the condition
`if (!context_ready || default_sink_idx == DEFAULT_SINK_INDEX)`
in description_pulseaudio() fails.

If a pulse device is explicitly specified, the first volume that
i3status prints gets assigned to zero. Otherwise, with the default
device, the ALSA fallback is used, unnecessarily initializing other
resources.

This patch implements a small wait that is run only once during
i3status' lifetime.

Fixes a small memleak that for some reason happens with the ALSA
fall-back if pulseaudio is used.
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.

1 participant