GET /info

This commit is contained in:
Christian Glombek 2023-08-05 06:37:12 +02:00
parent cf2aac7039
commit b4b3a53384
4 changed files with 428 additions and 35 deletions

View file

@ -243,7 +243,7 @@ static int process_status(struct pw_rtsp_client *client, char *buf)
const char *state = NULL, *s;
size_t len;
pw_log_info("status: %s", buf);
pw_log_info("processing status: %s", buf);
s = pw_split_walk(buf, " ", &len, &state);
if (!spa_strstartswith(s, "RTSP/"))
@ -355,6 +355,7 @@ static int process_content(struct pw_rtsp_client *client)
spa_assert((size_t) res <= client->content_length);
client->content_length -= res;
pw_log_info("processing content (%ld bytes):\n%s", client->content.size, client->content.data);
}
if (client->content_length == 0)