rtspconnection: CSeq initial value set to 0
authorKristofer Bjorkstrom <kristofb@axis.com>
Wed, 10 Apr 2019 06:45:53 +0000 (08:45 +0200)
committerKristofer Bjorkstrom <kristofb@axis.com>
Wed, 10 Apr 2019 07:09:58 +0000 (09:09 +0200)
RFC 7826: "it is RECOMMENDED to start at 0.

gst-libs/gst/rtsp/gstrtspconnection.c

index e4a6f93..dba9b7b 100644 (file)
@@ -360,7 +360,7 @@ gst_rtsp_connection_create (const GstRTSPUrl * url, GstRTSPConnection ** conn)
   newconn->url = gst_rtsp_url_copy (url);
   newconn->timer = g_timer_new ();
   newconn->timeout = 60;
-  newconn->cseq = 1;
+  newconn->cseq = 0;            /* RFC 7826: "it is RECOMMENDED to start at 0." */
 
   newconn->remember_session_id = TRUE;