diff options
author | Hajime Fujita <crisp.fujita@nifty.com> | 2016-11-06 12:54:22 -0600 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2017-01-19 03:10:19 +0200 |
commit | f3aa588a61a5c23958752868d5fec855fa12b94f (patch) | |
tree | 11d70819fdf18a86c635182ca3a5fb0640514115 /src | |
parent | cd09b886911c6d1e1775381c6a59cfd505d8fb05 (diff) | |
download | pulseaudio-f3aa588a61a5c23958752868d5fec855fa12b94f.tar.gz |
raop: Stop recording when RTSP FLUSH is issued
This patch fixes the issue #31.
https://github.com/hfujita/pulseaudio-raop2/issues/31
This patch sets c->is_recording = false when the RTSP FLUSH command
is issued. This avoids a race between the server response and
the record activation in some cases.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/raop/raop-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/raop/raop-client.c b/src/modules/raop/raop-client.c index 52b2dee91..bbef59d24 100644 --- a/src/modules/raop/raop-client.c +++ b/src/modules/raop/raop-client.c @@ -1114,8 +1114,6 @@ static void rtsp_stream_cb(pa_rtsp_client *rtsp, pa_rtsp_state_t state, pa_rtsp_ case STATE_FLUSH: { pa_log_debug("RAOP: FLUSHED"); - c->is_recording = false; - break; } @@ -1614,6 +1612,8 @@ int pa_raop_client_flush(pa_raop_client *c) { return 1; } + c->is_recording = false; + rv = pa_rtsp_flush(c->rtsp, c->seq, c->rtptime); return rv; } |