]> git.alsa-project.org Git - alsa-plugins.git/commit
pulse: unify stream/context state checks
authorLennart Poettering <mznyfn@0pointer.de>
Tue, 4 Aug 2009 21:55:05 +0000 (23:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 4 Aug 2009 21:58:26 +0000 (23:58 +0200)
commit59ccd2aca941b4653803f5415b4985ab35de0c35
tree0e725caa1c60369f9f0a02ee2785c43601e620cd
parentc3acf0f4df121fef0014bd165fa86ccb1060d669
pulse: unify stream/context state checks

Unify (and simplify) the paths that check for the validity of a
stream/context: always call into check_stream()/pulse_check_connection()
when applicable instead of rolling our own checks each time. Also check
for validity of mainloop before locking it.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
pulse/ctl_pulse.c
pulse/pcm_pulse.c