mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
829b7298e9
commit
18c610edda
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue