From: Peter Kjellerstedt Date: Fri, 5 Jun 2009 11:55:08 +0000 (+0200) Subject: rtsp: Use #defined status codes. X-Git-Tag: 1.19.3~511^2~9584 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0167e3589d4302785f563494674083f957d10009;p=platform%2Fupstream%2Fgstreamer.git rtsp: Use #defined status codes. --- diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 0994bcb..cc40fb0 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -647,7 +647,7 @@ setup_tunneling (GstRTSPConnection * conn, GTimeVal * timeout) resultstr = bptr; - if (code != 200) + if (code != GST_RTSP_STS_OK) goto wrong_result; } else { gchar key[32]; @@ -1832,7 +1832,7 @@ gen_tunnel_reply (GstRTSPConnection * conn, GstRTSPStatusCode code) status = gst_rtsp_status_as_text (code); if (status == NULL) { - code = 500; + code = GST_RTSP_STS_INTERNAL_SERVER_ERROR; status = "Internal Server Error"; } @@ -1845,7 +1845,7 @@ gen_tunnel_reply (GstRTSPConnection * conn, GstRTSPStatusCode code) "Date: %s\r\n" "Connection: close\r\n" "Cache-Control: no-store\r\n" "Pragma: no-cache\r\n", date_string); - if (code == 200) { + if (code == GST_RTSP_STS_OK) { if (conn->ip) g_string_append_printf (str, "x-server-ip-address: %s\r\n", conn->ip); g_string_append_printf (str,