summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-08-05 01:03:49 +0200
committerLennart Poettering <lennart@poettering.net>2009-08-05 01:03:49 +0200
commita4bc41a7a505c3acfe329d1a64cd82e7538a1e8f (patch)
tree243cbafd72cf588052f63f87978b24a47c3fe224
parent5e61111a88dc3eb07f8f582e6044ad66ab345f42 (diff)
simple: use PA_xxx_IS_GOOD for state checks
-rw-r--r--src/pulse/simple.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/simple.c b/src/pulse/simple.c
index f4481fc3..bd11cb37 100644
--- a/src/pulse/simple.c
+++ b/src/pulse/simple.c
@@ -70,8 +70,8 @@ struct pa_simple {
#define CHECK_DEAD_GOTO(p, rerror, label) \
do { \
- if (!(p)->context || pa_context_get_state((p)->context) != PA_CONTEXT_READY || \
- !(p)->stream || pa_stream_get_state((p)->stream) != PA_STREAM_READY) { \
+ if (!(p)->context || !PA_CONTEXT_IS_GOOD(pa_context_get_state((p)->context)) || \
+ !(p)->stream || !PA_STREAM_IS_GOOD(pa_stream_get_state((p)->stream))) { \
if (((p)->context && pa_context_get_state((p)->context) == PA_CONTEXT_FAILED) || \
((p)->stream && pa_stream_get_state((p)->stream) == PA_STREAM_FAILED)) { \
if (rerror) \