From de9aeb0c72b5a7c7252c821d6119187f3ca855f7 Mon Sep 17 00:00:00 2001 From: Ognyan Tonchev Date: Tue, 10 Jul 2012 11:34:47 +0200 Subject: [PATCH] rtsp: Update the initial_buffer when merging RTSP Connections See https://bugzilla.gnome.org/show_bug.cgi?id=679337 --- gst-libs/gst/rtsp/gstrtspconnection.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 2041259c53..fd2cbdf3a4 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -2864,6 +2864,11 @@ gst_rtsp_connection_do_tunnel (GstRTSPConnection * conn, conn->read_socket = conn->socket1; conn->tstate = TUNNEL_STATE_COMPLETE; + + g_free (conn->initial_buffer); + conn->initial_buffer = conn2->initial_buffer; + conn2->initial_buffer = NULL; + conn->initial_buffer_offset = conn2->initial_buffer_offset; } /* we need base64 decoding for the readfd */