Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5382>
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 == ',')