From e81f5e2833fea512dad5f7bf62f8f9c4e727e1f3 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Thu, 14 Aug 2014 13:01:17 +0400 Subject: [PATCH] sink: use RTSP_CODE_OK Avoid magic numbers when creating rtsp responses, use RTSP_CODE_* constants instead. Signed-off-by: Andrey Gusakov Signed-off-by: David Herrmann --- src/ctl/ctl-sink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ctl/ctl-sink.c b/src/ctl/ctl-sink.c index 303103a..8f37545 100644 --- a/src/ctl/ctl-sink.c +++ b/src/ctl/ctl-sink.c @@ -69,7 +69,7 @@ static void sink_handle_options(struct ctl_sink *s, _rtsp_message_unref_ struct rtsp_message *rep = NULL; int r; - r = rtsp_message_new_reply_for(m, &rep, 200, NULL); + r = rtsp_message_new_reply_for(m, &rep, RTSP_CODE_OK, NULL); if (r < 0) return cli_vERR(r); @@ -116,7 +116,7 @@ static void sink_handle_get_parameter(struct ctl_sink *s, _rtsp_message_unref_ struct rtsp_message *rep = NULL; int r; - r = rtsp_message_new_reply_for(m, &rep, 200, NULL); + r = rtsp_message_new_reply_for(m, &rep, RTSP_CODE_OK, NULL); if (r < 0) return cli_vERR(r); @@ -187,7 +187,7 @@ static void sink_handle_set_parameter(struct ctl_sink *s, char *nu; int r; - r = rtsp_message_new_reply_for(m, &rep, 200, NULL); + r = rtsp_message_new_reply_for(m, &rep, RTSP_CODE_OK, NULL); if (r < 0) return cli_vERR(r);