raop: Allow digest authentication and auth-setup to be used together

The current implementation assumes these are mutually exclusive, but
Yamaha MusicCast requires an auth-setup step following the digest
authentication.

`rtsp_auth_reply` could be dropped in favour of `rtsp_options_reply`,
but you may end up in a loop if the other end keeps responding with 401.
This commit is contained in:
James Le Cuirot 2022-10-11 23:35:41 +01:00 committed by Wim Taymans
parent 4b0945bf01
commit f059f14c68

View file

@ -1168,7 +1168,10 @@ static void rtsp_auth_reply(void *data, int status, const struct spa_dict *heade
switch (status) { switch (status) {
case 200: case 200:
rtsp_do_announce(impl); if (impl->encryption == CRYPTO_AUTH_SETUP)
rtsp_do_auth_setup(impl);
else
rtsp_do_announce(impl);
break; break;
} }
} }