pipewire: update to master as of Nov 19th 2019
[AGL/meta-agl-devel.git] / meta-pipewire / recipes-multimedia / pipewire / pipewire / 0005-gst-pwaudioringbuffer-wait-only-for-STREAM_STATE_CON.patch
1 From ea2ba0fcf561fecd7e62e80e2c34bf6bd23f917b Mon Sep 17 00:00:00 2001
2 From: George Kiagiadakis <george.kiagiadakis@collabora.com>
3 Date: Thu, 11 Jul 2019 16:34:35 +0300
4 Subject: [PATCH] gst/pwaudioringbuffer: wait only for STREAM_STATE_CONFIGURE
5  when starting
6
7 The CONFIGURE state is reached when the pw_client_node is exported,
8 while the READY state requires the session manager to try and link
9 the stream. If the SM does not want to link the stream due to policy,
10 the client should not hang there forever.
11
12 Upstream-Status: Denied
13 See https://gitlab.freedesktop.org/pipewire/pipewire/merge_requests/140
14 ---
15  src/gst/gstpwaudioringbuffer.c | 4 ++--
16  1 file changed, 2 insertions(+), 2 deletions(-)
17
18 diff --git a/src/gst/gstpwaudioringbuffer.c b/src/gst/gstpwaudioringbuffer.c
19 index 97350f38..3efec6ec 100644
20 --- a/src/gst/gstpwaudioringbuffer.c
21 +++ b/src/gst/gstpwaudioringbuffer.c
22 @@ -442,9 +442,9 @@ gst_pw_audio_ring_buffer_acquire (GstAudioRingBuffer *buf,
23            params, 1) < 0)
24      goto start_error;
25  
26 -  GST_DEBUG_OBJECT (self->elem, "waiting for stream READY");
27 +  GST_DEBUG_OBJECT (self->elem, "waiting for stream CONFIGURE");
28  
29 -  if (!wait_for_stream_state (self, PW_STREAM_STATE_READY))
30 +  if (!wait_for_stream_state (self, PW_STREAM_STATE_CONFIGURE))
31      goto start_error;
32  
33    pw_thread_loop_unlock (self->main_loop);
34 -- 
35 2.24.0
36