From 0ad84f119e982ea88c9dbc61a20360f33c6645ff Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 28 Jun 2017 08:13:26 +0200 Subject: [PATCH] satip server: fix the problem introduced in 'satip server: pass cmd to rtsp_start() to make core more readable' --- src/satip/rtsp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/satip/rtsp.c b/src/satip/rtsp.c index 2cafd4fc5..50f1044ff 100644 --- a/src/satip/rtsp.c +++ b/src/satip/rtsp.c @@ -883,10 +883,10 @@ rtsp_parse_cmd http_arg_t *arg; switch (cmd) { - case -1: caller = "DESCRIBE"; break; - case 0: caller = "PLAY"; break; - case 1: caller = "SETUP"; break; - default: caller = NULL; break; + case RTSP_CMD_DESCRIBE: caller = "DESCRIBE"; break; + case RTSP_CMD_PLAY: caller = "PLAY"; break; + case RTSP_CMD_SETUP: caller = "SETUP"; break; + default: caller = NULL; break; } *rrs = NULL; @@ -1298,7 +1298,7 @@ rtsp_process_describe(http_connection_t *hc) pthread_mutex_unlock(&rtsp_lock); goto error; } - r = rtsp_parse_cmd(hc, stream, -1, &rs, &valid, &oldstate); + r = rtsp_parse_cmd(hc, stream, RTSP_CMD_DESCRIBE, &rs, &valid, &oldstate); if (r) { pthread_mutex_unlock(&rtsp_lock); goto error; -- 2.47.2