[Bug 678546] [hlsdemux] supply a more useful user-agent

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jun 25 06:41:04 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=678546
  GStreamer | gst-plugins-bad | git

--- Comment #4 from Gil Pedersen <bugzilla.gnome at gpost.dk> 2012-06-25 13:41:00 UTC ---
(In reply to comment #3)
> Instead of relying on souphttpsrc you could as well check if the element has an
> "user-agent" property which takes string arguments. See element_has_property()
> in gst-plugins-base/gst/playback/gstplaysink.c for example.

I considered this but I think this is risky since it makes assumptions about
the functionality of potentially unknown modules. I don't see a way that we can
guarantee that a "user-agent" property works as expected. The souphttpsrc
property is already a bit wonky since it interprets a trailing space character
in the agent to mean that it should insert an extra string at the end with the
libsoup version.

Basing the fetching around a known module also opens up further possibilities,
like specifying the cookies and auth headers, or possibly a custom timeout
value which might be useful.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list