ffserver: simplify assignment with ternary

Signed-off-by: 's avatarReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
parent 2ea642ff
...@@ -703,13 +703,9 @@ static void start_wait_request(HTTPContext *c, int is_rtsp) ...@@ -703,13 +703,9 @@ static void start_wait_request(HTTPContext *c, int is_rtsp)
c->buffer_ptr = c->buffer; c->buffer_ptr = c->buffer;
c->buffer_end = c->buffer + c->buffer_size - 1; /* leave room for '\0' */ c->buffer_end = c->buffer + c->buffer_size - 1; /* leave room for '\0' */
if (is_rtsp) { c->state = is_rtsp ? RTSPSTATE_WAIT_REQUEST : HTTPSTATE_WAIT_REQUEST;
c->timeout = cur_time + RTSP_REQUEST_TIMEOUT; c->timeout = cur_time +
c->state = RTSPSTATE_WAIT_REQUEST; is_rtsp ? RTSP_REQUEST_TIMEOUT : HTTP_REQUEST_TIMEOUT;
} else {
c->timeout = cur_time + HTTP_REQUEST_TIMEOUT;
c->state = HTTPSTATE_WAIT_REQUEST;
}
} }
static void http_send_too_busy_reply(int fd) static void http_send_too_busy_reply(int fd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment