From 0c494c546971dfb38dd7ccdd211683e0fc0148ef Mon Sep 17 00:00:00 2001 From: Tycho Haemers Date: Wed, 12 Oct 2022 08:42:22 +0000 Subject: [PATCH] Update src/modules/module-raop-sink.c --- src/modules/module-raop-sink.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/modules/module-raop-sink.c b/src/modules/module-raop-sink.c index dac7aa322..4a0c865ed 100644 --- a/src/modules/module-raop-sink.c +++ b/src/modules/module-raop-sink.c @@ -760,6 +760,8 @@ static void rtsp_record_reply(void *data, int status, const struct spa_dict *hea uint8_t buffer[1024]; struct spa_pod_builder b; struct spa_latency_info latency; + int res; + char *progress; pw_log_info("reply %d", status); @@ -784,10 +786,9 @@ static void rtsp_record_reply(void *data, int status, const struct spa_dict *hea impl->sync = 0; impl->sync_period = impl->info.rate / (impl->block_size / impl->frame_size); impl->recording = true; - int res; - char *progress; - asprintf(&progress,"progress: %s/%s/%s\r\n", "0","0","0"); - res = pw_rtsp_client_send(impl->rtsp, "SET_PARAMETER", NULL, + + asprintf(&progress,"progress: %s/%s/%s\r\n", "0","0","0"); + res = pw_rtsp_client_send(impl->rtsp, "SET_PARAMETER", NULL, "text/parameters", progress, NULL, NULL); }