mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04: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);
|
||||
else
|
||||
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->output_event = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue