mssdemux: also consider /manifest

The spec says /Manifest, but /manifest is easily found on some
services, so handle that, too.

https://bugzilla.gnome.org/show_bug.cgi?id=710223
This commit is contained in:
Thiago Santos 2013-11-11 16:35:35 -03:00
parent da4f9c18ec
commit fe77ee47c9

View file

@ -893,6 +893,11 @@ gst_mss_demux_process_manifest (GstMssDemux * mssdemux)
mssdemux->manifest_uri = g_strdup (uri);
baseurl_end = g_strrstr (uri, "/Manifest");
if (baseurl_end == NULL) {
/* second try */
baseurl_end = g_strrstr (uri, "/manifest");
}
if (baseurl_end) {
/* set the new end of the string */
baseurl_end[0] = '\0';