mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
rtsp: Correct gen_tunnel_reply().
Prevent gen_tunnel_reply() from generating an incomplete response in case an error response code is given.
This commit is contained in:
parent
b2783a5c5a
commit
c1a6644a18
1 changed files with 2 additions and 1 deletions
|
@ -1849,8 +1849,9 @@ gen_tunnel_reply (GstRTSPConnection * conn, GstRTSPStatusCode code)
|
|||
if (conn->ip)
|
||||
g_string_append_printf (str, "x-server-ip-address: %s\r\n", conn->ip);
|
||||
g_string_append_printf (str,
|
||||
"Content-Type: application/x-rtsp-tunnelled\r\n" "\r\n");
|
||||
"Content-Type: application/x-rtsp-tunnelled\r\n");
|
||||
}
|
||||
g_string_append_printf (str, "\r\n");
|
||||
return str;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue