mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
rtspconnection: Ignore trailing whitespace in headers
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5358>
This commit is contained in:
parent
c3b6479755
commit
f7cb79874a
1 changed files with 10 additions and 2 deletions
|
@ -2375,8 +2375,16 @@ parse_line (guint8 * buffer, GstRTSPMessage * msg)
|
|||
comma = next_value;
|
||||
} else if (*next_value == ' ' && next_value[1] != ',' &&
|
||||
next_value[1] != '=' && comma != NULL) {
|
||||
next_value = comma;
|
||||
comma = NULL;
|
||||
/* only process this as a separate header if there is more than just
|
||||
* trailing whitespace after this */
|
||||
for (gchar * curr_char = next_value; *curr_char != '\0';
|
||||
curr_char++) {
|
||||
if (!g_ascii_isspace (*curr_char)) {
|
||||
next_value = comma;
|
||||
comma = NULL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else if (*next_value == ',')
|
||||
|
|
Loading…
Reference in a new issue