Skip to content

ao_pulse: fix subscribe_cb using wrong bitmask for event type#17864

Merged
kasper93 merged 1 commit intompv-player:masterfrom
llyyr:fix/pulse-hotplug
May 3, 2026
Merged

ao_pulse: fix subscribe_cb using wrong bitmask for event type#17864
kasper93 merged 1 commit intompv-player:masterfrom
llyyr:fix/pulse-hotplug

Conversation

@llyyr
Copy link
Copy Markdown
Contributor

@llyyr llyyr commented May 2, 2026

PA_SUBSCRIPTION_MASK_SINK is a pa_subscription_mask constant used when registering with pa_context_subscribe(), not a
pa_subscription_event_type mask. Masking the event type with it would never match PA_SUBSCRIPTION_EVENT_NEW or PA_SUBSCRIPTION_EVENT_REMOVE, causing hotplug events to be silently dropped.

Fixes: e017500

PA_SUBSCRIPTION_MASK_SINK is a pa_subscription_mask constant used when
registering with pa_context_subscribe(), not a
pa_subscription_event_type mask. Masking the event type with it would
never match PA_SUBSCRIPTION_EVENT_NEW or PA_SUBSCRIPTION_EVENT_REMOVE,
causing hotplug events to be silently dropped.

Fixes: e017500
@kasper93 kasper93 merged commit d8be860 into mpv-player:master May 3, 2026
29 checks passed
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