From c1a6644a1858039380b16bf164e6cf06b79ece76 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Fri, 5 Jun 2009 13:53:29 +0200 Subject: [PATCH] rtsp: Correct gen_tunnel_reply(). Prevent gen_tunnel_reply() from generating an incomplete response in case an error response code is given. --- gst-libs/gst/rtsp/gstrtspconnection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 6214a0cd26..0994bcb0b2 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -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; }