commit 75f06db4c03fc4a8bc4ed3ef308de68a8f4cc185
Author: Ognyan Tonchev <ognyan@axis.com>
Date:   Mon Sep 8 15:19:02 2014 +0200

    rtspconnection: ignore timeout in session request header
    
    The timeout parameter is only allowed in a session response header
    but some clients, like Honeywell VMS applications, send it as part
    of the session request header. Ignore everything from the semicolon
    to the end of the line when parsing session id.

diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c
index da969f0..559b989 100644
--- a/gst-libs/gst/rtsp/gstrtspconnection.c
+++ b/gst-libs/gst/rtsp/gstrtspconnection.c
@@ -1782,6 +1782,19 @@ parse_line (guint8 * buffer, GstRTSPMessage * msg)
       next_value++;
     }
 
+    if (field == GST_RTSP_HDR_SESSION) {
+      /* The timeout parameter is only allowed in a session response header
+       * but some clients send it as part of the session request header.
+       * Ignore everything from the semicolon to the end of the line. */
+      next_value = value;
+      while (*next_value != '\0') {
+        if (*next_value == ';') {
+          break;
+        }
+        next_value++;
+      }
+    }
+
     /* trim space */
     if (value != next_value && next_value[-1] == ' ')
       next_value[-1] = '\0';
