mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
core: Fix check for io->output_event in enable_events()
copy-pase error discovered by coverity Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
402da5285a
commit
25101b299d
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ static void enable_events(pa_iochannel *io) {
|
||||||
io->mainloop->io_enable(io->output_event, PA_IO_EVENT_OUTPUT);
|
io->mainloop->io_enable(io->output_event, PA_IO_EVENT_OUTPUT);
|
||||||
else
|
else
|
||||||
io->output_event = io->mainloop->io_new(io->mainloop, io->ofd, PA_IO_EVENT_OUTPUT, callback, io);
|
io->output_event = io->mainloop->io_new(io->mainloop, io->ofd, PA_IO_EVENT_OUTPUT, callback, io);
|
||||||
} else if (io->input_event) {
|
} else if (io->output_event) {
|
||||||
io->mainloop->io_free(io->output_event);
|
io->mainloop->io_free(io->output_event);
|
||||||
io->output_event = NULL;
|
io->output_event = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue