[gst-cvs] gst-plugins-base: rtsp: Correct gen_tunnel_reply().

Peter Kjellerstedt pkj at kemper.freedesktop.org
Fri Jun 5 05:09:23 PDT 2009


Module: gst-plugins-base
Branch: master
Commit: c1a6644a1858039380b16bf164e6cf06b79ece76
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=c1a6644a1858039380b16bf164e6cf06b79ece76

Author: Peter Kjellerstedt <pkj at axis.com>
Date:   Fri Jun  5 13:53:29 2009 +0200

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 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c
index 6214a0c..0994bcb 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;
 }
 





More information about the Gstreamer-commits mailing list