diff options
| -rw-r--r-- | src/pulse/simple.c | 4 | 
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)                                             \  | 
