rtsp-session: RFC2326 does not allow a space between ; and timeout in the Session...
authorIan <ian.arkver.dev@gmail.com>
Wed, 18 May 2016 15:48:44 +0000 (16:48 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 19 May 2016 08:57:33 +0000 (11:57 +0300)
This works with rtspsrc and live555, but fails with e.g. ffmpeg.

https://bugzilla.gnome.org/show_bug.cgi?id=766619

gst/rtsp-server/rtsp-session.c

index 052537e..10f5648 100644 (file)
@@ -488,7 +488,7 @@ gst_rtsp_session_get_header (GstRTSPSession * session)
 
   g_mutex_lock (&priv->lock);
   if (priv->timeout_always_visible || priv->timeout != 60)
-    result = g_strdup_printf ("%s; timeout=%d", priv->sessionid, priv->timeout);
+    result = g_strdup_printf ("%s;timeout=%d", priv->sessionid, priv->timeout);
   else
     result = g_strdup (priv->sessionid);
   g_mutex_unlock (&priv->lock);