diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index ff303e9b62..898f0fb2bb 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -984,11 +984,11 @@ gst_mpdparser_parse_duration (const char *str, guint64 * value) goto error; } /* skip leading/trailing whitespace */ - while (strchr (" \t", str[0])) { + while (g_ascii_isspace (str[0])) { str++; len--; } - while (len > 0 && strchr (" \t", str[len - 1])) + while (len > 0 && g_ascii_isspace (str[len - 1])) --len; /* read "P" for period */