From: Jaroslav Kysela Date: Tue, 20 Jun 2017 12:50:54 +0000 (+0200) Subject: satip server: show the stream status for DESCRIBE in SETUP state, fixes #4449 X-Git-Tag: v4.2.4~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d46c4310f31745f220f3789f406064625dcf053;p=thirdparty%2Ftvheadend.git satip server: show the stream status for DESCRIBE in SETUP state, fixes #4449 --- diff --git a/src/satip/rtsp.c b/src/satip/rtsp.c index 89654cb84..98db81b52 100644 --- a/src/satip/rtsp.c +++ b/src/satip/rtsp.c @@ -1255,10 +1255,10 @@ rtsp_describe_session(session_t *rs, htsbuf_queue_t *q) htsbuf_append_str(q, "c=IN IP6 ::0\r\n"); else htsbuf_append_str(q, "c=IN IP4 0.0.0.0\r\n"); - if (rs->state == STATE_PLAY) { + if (rs->state == STATE_PLAY || rs->state == STATE_SETUP) { satip_rtp_status((void *)(intptr_t)rs->stream, buf, sizeof(buf)); htsbuf_qprintf(q, "a=fmtp:33 %s\r\n", buf); - htsbuf_append_str(q, "a=sendonly\r\n"); + htsbuf_qprintf(q, "a=%s\r\n", rs->state == STATE_SETUP ? "inactive" : "sendonly"); } else { htsbuf_append_str(q, "a=fmtp:33\r\n"); htsbuf_append_str(q, "a=inactive\r\n");