GNOME Bugzilla – Bug 556019
Add the ability to make souphttpsrc act as a live source
Last modified: 2009-01-23 08:45:14 UTC
For certain http streams, for example multipart jpeg cameras, it's usefull to have the httpsrc timestamp the incoming buffers. Being derived from basesrc, souphttpsrc already has a do-timestamp property, but as it's not a live source, it will start pushing buffers before there is a clock selected. Hence the first few buffers have a wrong timestamp. Attached patch solves this by adding a property to turn the souphttpsrc into a live src. In combination with do-timestamp this makes it push out nicely timestamped buffers
Created attachment 120439 [details] [review] proposed patch
Looks good, I'll commit it after freeze :)
2008-10-27 Sebastian Dröge <sebastian.droege@collabora.co.uk> Patch by: Sjoerd Simons <sjoerd at luon dot net> * ext/soup/gstsouphttpsrc.c: (gst_soup_http_src_class_init), (gst_soup_http_src_set_property), (gst_soup_http_src_get_property): Add support for souphttpsrc to act as a live source. This makes it possible to get timestamped buffers in combination with the "do-timestamp" property. Fixes bug #556019.
I see this is closed already but I need the same thing on gnomevfssrc. Would it not be better to just add this to GstBaseSrc where the property instance variable is located? This would add the capability to any derived class that needs it much the same way do-timestamp is implemented. I use gnomevfssrc for mjpeg cameras because it allows basic authentication in the location parameter which souphttpsrc does not.
Addressed my issue in 561775 so no need on gnomevfssrc.