rtsp: Use session header also for the options cmd

This commit is contained in:
Jaroslav Kysela 2014-05-24 23:30:45 +02:00
parent 67d1f18164
commit fbe885b79d

View file

@ -36,7 +36,7 @@ rtsp_send( http_client_t *hc, http_cmd_t cmd,
size_t blen = 7 + strlen(hc->hc_host) + (path ? strlen(path) : 1) + 1;
char *buf = alloca(blen);
if (hc->hc_rtsp_session && cmd != RTSP_CMD_OPTIONS) {
if (hc->hc_rtsp_session) {
if (hdr == NULL) {
hdr = &h;
http_arg_init(&h);