[gst-cvs] gst-plugins-base: rtsp: fix parsing of the timeout parameter

Wim Taymans wtay at kemper.freedesktop.org
Wed Mar 11 10:45:50 PDT 2009


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

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Wed Mar 11 18:45:59 2009 +0100

rtsp: fix parsing of the timeout parameter

--

---

 gst-libs/gst/rtsp/gstrtspconnection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c
index a66aa3d..8849eac 100644
--- a/gst-libs/gst/rtsp/gstrtspconnection.c
+++ b/gst-libs/gst/rtsp/gstrtspconnection.c
@@ -1651,7 +1651,7 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message,
                 gint to;
 
                 /* if we parsed something valid, configure */
-                if ((to = atoi (&session_id[i + 9])) > 0)
+                if ((to = atoi (&session_id[i + 8])) > 0)
                   conn->timeout = to;
               }
               break;
@@ -2870,7 +2870,7 @@ queue_response (GstRTSPWatch * watch, GString * str, guint cseq)
   data->str = str;
   data->cseq = cseq;
 
-  /* add the record to a queue */
+  /* add the record to a queue. FIXME we would like to have an upper limit here */
   watch->messages = g_list_append (watch->messages, data);
 
   /* make sure the main context will now also check for writability on the





More information about the Gstreamer-commits mailing list