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
@ -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…
x
Reference in New Issue
Block a user