GNOME Bugzilla – Bug 766555
souhttpsrc: Handle redirects to non-HTTP URLs
Last modified: 2018-11-03 15:09:19 UTC
Sometimes, HTTP URLs might respond with 302/303 redirect to a non-HTTP URL. Some radio stations do this to redirect to mms:// URLs for example. In such cases, souphttpsrc does not redirect properly. Add code to post a redirect message in case of non-HTTP URLs.
Created attachment 328051 [details] [review] First attempt at redirecting non-HTTP URLs This is a first attempt at solving this. It works, but still uses the element-based redirect message style that is currently used by uridecodebin. Once https://bugzilla.gnome.org/show_bug.cgi?id=631673 is committed, the patch will be updated to post that message instead.
Review of attachment 328051 [details] [review]: Makes sense ::: ext/soup/gstsouphttpsrc.c @@ +1127,3 @@ + + for (protocol = protocols; *protocol != NULL; ++protocol) { + if (g_str_has_prefix (redirection_uri, *protocol)) { Here now "http" would match on "https://blabla"... or "icy" on "icyblablabla://". I think this should be a bit more exact
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/274.