rtp: New pa_rtsp_options function

Add a function performing a call to the OPTIONS request; also,
in some special cases, tuning transport parameters is required (default:
"RTP/AVP/TCP;unicast;interleaved=0-1;mode=record") ! The RAOP client for
example needs to overwrite them.

Reviewed-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
Colin Leroy 2016-01-31 22:16:03 -06:00 committed by Tanu Kaskinen
parent 736fabf0ca
commit a0199dd99d
3 changed files with 29 additions and 4 deletions

View file

@ -299,10 +299,14 @@ static void rtsp_cb(pa_rtsp_client *rtsp, pa_rtsp_state state, pa_headerlist *he
break;
}
case STATE_OPTIONS:
pa_log_debug("RAOP: OPTIONS");
break;
case STATE_ANNOUNCE:
pa_log_debug("RAOP: ANNOUNCED");
pa_rtsp_remove_header(c->rtsp, "Apple-Challenge");
pa_rtsp_setup(c->rtsp);
pa_rtsp_setup(c->rtsp, NULL);
break;
case STATE_SETUP: {