diff options
author | Andrey Gusakov <andrey.gusakov@cogentembedded.com> | 2014-08-14 13:01:17 +0400 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-09-03 08:11:53 +0200 |
commit | e81f5e2833fea512dad5f7bf62f8f9c4e727e1f3 (patch) | |
tree | 41e74dcde2aef6c7a71cdce16f7a3ab8719d7048 | |
parent | 67ad4867653080d41b567a9be7edce1ef6ec304b (diff) |
sink: use RTSP_CODE_OK
Avoid magic numbers when creating rtsp responses, use RTSP_CODE_*
constants instead.
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
-rw-r--r-- | src/ctl/ctl-sink.c | 6 |
1 files 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); |