Commit 18c610ed authored by Sebastian Dröge's avatar Sebastian Dröge

rtspconnection: Only drop everything after the ; of a session header in requests

For responses it is actually allowed and used to signal the timeout to the
client!

https://bugzilla.gnome.org/show_bug.cgi?id=736267
parent 829b7298
......@@ -1842,7 +1842,7 @@ parse_line (guint8 * buffer, GstRTSPMessage * msg)
next_value++;
}
if (field == GST_RTSP_HDR_SESSION) {
if (msg->type == GST_RTSP_MESSAGE_REQUEST && 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. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment