mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-11 13:30:02 -05:00
pulsecore: fix check for cb (m is already checked before)
This commit is contained in:
parent
67b0baecc4
commit
d1306e3020
1 changed files with 1 additions and 1 deletions
|
|
@ -4070,7 +4070,7 @@ static void command_extension(pa_pdispatch *pd, uint32_t command, uint32_t tag,
|
|||
CHECK_VALIDITY(c->pstream, m->load_once || idx != PA_INVALID_INDEX, tag, PA_ERR_INVALID);
|
||||
|
||||
cb = (pa_native_protocol_ext_cb_t) (unsigned long) pa_hashmap_get(c->protocol->extensions, m);
|
||||
CHECK_VALIDITY(c->pstream, m, tag, PA_ERR_NOEXTENSION);
|
||||
CHECK_VALIDITY(c->pstream, cb, tag, PA_ERR_NOEXTENSION);
|
||||
|
||||
if (cb(c->protocol, m, c, tag, t) < 0)
|
||||
protocol_error(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue