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:
Peter Kjellerstedt 2009-06-05 13:53:29 +02:00
parent b2783a5c5a
commit c1a6644a18

View file

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