1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

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>
This commit is contained in:
Andrey Gusakov 2014-08-14 13:01:17 +04:00 committed by David Herrmann
parent 67ad486765
commit e81f5e2833

View file

@ -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);