mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
Now the only exit from the function is either via "goto fail" or normal success. I changed pa_hook_fire() return value checking into assertions, because it's simpler (and I verified that none of the hooks can ever fail in the current code base). I also changed all pa_return_null_if_fail() calls into assertions. Further simplification could be achieved if adding the sinks and sources to the idxsets in pa_core were moved to _put() and if unregistering the sink and source names was moved to _free(). Then _new() wouldn't have to call _unlink() and _unlink() would have fewer things to worry about. The pa_sink/pa_source field initialization order was changed somewhat, because _unlink() and _unref() rely on certain fields to be initialized, so they had to be initialized before the first "goto fail" line in _new(). |
||
|---|---|---|
| .. | ||
| daemon | ||
| modules | ||
| pulse | ||
| pulsecore | ||
| tests | ||
| utils | ||
| .gitignore | ||
| depmod.py | ||
| Makefile.am | ||
| map-file | ||