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
This commit is contained in:
Sebastian Dröge 2015-06-22 19:51:32 +02:00
parent 829b7298e9
commit 18c610edda

View file

@ -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. */