GNOME Bugzilla – Bug 732459
rtspconnection: tunneled connections do not work if POST channel is established first
Last modified: 2014-07-04 12:57:44 UTC
It is not possible to start a tunneled RTSP session by establishing the HTTP POST connection first because the function gst_rtsp_connection_do_tunnel() assumes that the GET channel is established first. I have attached a patch that modifies the function so it checks what type of connection was first established, GET or POST, and then merges them accordingly. The patch also includes a unit test for the case where the POST is established first.
Created attachment 279577 [details] [review] Proposed patch remedying the problem
commit 0425f1cf4d085f1dc554d3c43d8a1492e9722c64 Author: Wim Taymans <wtaymans@redhat.com> Date: Tue Jul 1 16:19:22 2014 +0200 rtspconnection: also allow POST before GET Don't only allow GET and then POST request to setup tunneling over HTTP but also allow POST and then GET. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732459