mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:26:14 +00:00
rtsp: Use #defined status codes.
This commit is contained in:
parent
c1a6644a18
commit
0167e3589d
1 changed files with 3 additions and 3 deletions
|
@ -647,7 +647,7 @@ setup_tunneling (GstRTSPConnection * conn, GTimeVal * timeout)
|
||||||
|
|
||||||
resultstr = bptr;
|
resultstr = bptr;
|
||||||
|
|
||||||
if (code != 200)
|
if (code != GST_RTSP_STS_OK)
|
||||||
goto wrong_result;
|
goto wrong_result;
|
||||||
} else {
|
} else {
|
||||||
gchar key[32];
|
gchar key[32];
|
||||||
|
@ -1832,7 +1832,7 @@ gen_tunnel_reply (GstRTSPConnection * conn, GstRTSPStatusCode code)
|
||||||
|
|
||||||
status = gst_rtsp_status_as_text (code);
|
status = gst_rtsp_status_as_text (code);
|
||||||
if (status == NULL) {
|
if (status == NULL) {
|
||||||
code = 500;
|
code = GST_RTSP_STS_INTERNAL_SERVER_ERROR;
|
||||||
status = "Internal Server Error";
|
status = "Internal Server Error";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1845,7 +1845,7 @@ gen_tunnel_reply (GstRTSPConnection * conn, GstRTSPStatusCode code)
|
||||||
"Date: %s\r\n"
|
"Date: %s\r\n"
|
||||||
"Connection: close\r\n"
|
"Connection: close\r\n"
|
||||||
"Cache-Control: no-store\r\n" "Pragma: no-cache\r\n", date_string);
|
"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)
|
if (conn->ip)
|
||||||
g_string_append_printf (str, "x-server-ip-address: %s\r\n", conn->ip);
|
g_string_append_printf (str, "x-server-ip-address: %s\r\n", conn->ip);
|
||||||
g_string_append_printf (str,
|
g_string_append_printf (str,
|
||||||
|
|
Loading…
Reference in a new issue