pulseaudio/src
Tanu Kaskinen b7bf725f50 sink, source: Simplify pa_sink/source_new() error handling
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().
2013-09-17 16:20:18 +03:00
..
daemon daemon.conf: Document new speex-float-1 default 2013-07-23 15:58:42 +02:00
modules sink, source: Add pa_sink/source_get_description() 2013-09-17 16:16:36 +03:00
pulse hashmap: Add the ability to free keys 2013-09-17 18:01:22 +05:30
pulsecore sink, source: Simplify pa_sink/source_new() error handling 2013-09-17 16:20:18 +03:00
tests Use pa_(c)volume_snprint_verbose() everywhere 2013-07-09 17:37:04 +03:00
utils pacat: Added support for recording from one specific sink input 2013-08-14 16:09:54 +03:00
.gitignore .gitignore: Add lo-latency-test 2013-06-06 13:56:30 +03:00
depmod.py remove remaining $ 2008-06-18 22:38:32 +02:00
Makefile.am node: Introduce pa_node 2013-09-17 16:16:36 +03:00
map-file context: add pa_context_load_cookie_from_file() 2013-08-27 16:41:58 +03:00