mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: index flags are only used for modules
one flag for the internal extension modules, another flag for the modules we load in pulse server that don't really have a matching pipewire module.
This commit is contained in:
parent
6a2aea8e0a
commit
955e4287ab
4 changed files with 9 additions and 9 deletions
|
|
@ -4015,7 +4015,7 @@ static int do_get_info(struct client *client, uint32_t command, uint32_t tag, st
|
|||
|
||||
if (command == COMMAND_GET_MODULE_INFO && (sel.id & MODULE_FLAG) != 0) {
|
||||
struct module *module;
|
||||
module = pw_map_lookup(&impl->modules, sel.id & INDEX_MASK);
|
||||
module = pw_map_lookup(&impl->modules, sel.id & MODULE_INDEX_MASK);
|
||||
if (module == NULL)
|
||||
goto error_noentity;
|
||||
fill_ext_module_info(client, reply, module);
|
||||
|
|
@ -4772,7 +4772,7 @@ static int do_unload_module(struct client *client, uint32_t command, uint32_t ta
|
|||
if ((module_idx & MODULE_FLAG) == 0)
|
||||
return -EPERM;
|
||||
|
||||
module = pw_map_lookup(&impl->modules, module_idx & INDEX_MASK);
|
||||
module = pw_map_lookup(&impl->modules, module_idx & MODULE_INDEX_MASK);
|
||||
if (module == NULL)
|
||||
return -ENOENT;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue