From cab645d15514a985e5c0ea5bf1f2c6edf8c3063e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 12 May 2020 17:50:24 +0200 Subject: [PATCH] stream: we can get the index before we are ready --- pipewire-pulseaudio/src/stream.c | 1 - 1 file changed, 1 deletion(-) diff --git a/pipewire-pulseaudio/src/stream.c b/pipewire-pulseaudio/src/stream.c index 9ac81c1fa..8815d2a64 100644 --- a/pipewire-pulseaudio/src/stream.c +++ b/pipewire-pulseaudio/src/stream.c @@ -807,7 +807,6 @@ uint32_t pa_stream_get_index(PA_CONST pa_stream *s) spa_assert(s); spa_assert(s->refcount >= 1); - PA_CHECK_VALIDITY_RETURN_ANY(s->context, s->state == PA_STREAM_READY, PA_ERR_BADSTATE, PA_INVALID_INDEX); idx = s->stream ? pw_stream_get_node_id(s->stream) : PA_INVALID_INDEX; pw_log_debug("stream %p: index %u", s, idx);