dashdemux: removed unnecessary space trimming in gst_dash_demux_parse_http_head

sscanf has removed all spaces when it has constructed zone string. There is
no need to search for leading spaces.

https://bugzilla.gnome.org/show_bug.cgi?id=759743
This commit is contained in:
Florin Apostol 2015-12-22 11:23:19 +00:00 committed by Sebastian Dröge
parent 09b21eacae
commit ef06d2a855

View file

@ -1824,9 +1824,6 @@ gst_dash_demux_parse_http_head (GstDashDemuxClockDrift * clock_drift,
break;
}
}
while (*z == ' ') {
++z;
}
for (int i = 0; timezones[i].name && !parsed_tz; ++i) {
if (g_ascii_strncasecmp (timezones[i].name, z,
strlen (timezones[i].name)) == 0) {