[Bug 773509] souphttpsrc: connection loss / reconnect issues

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Oct 26 08:18:07 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=773509

--- Comment #2 from Michael Olbrich <m.olbrich at pengutronix.de> ---
The check is in gst_soup_http_src_do_request(), that's correct.
Without this patch 'src->request_position != src->read_position' is always
false, so the last range is used, so we start at the same position as the last
request, so with something we've already played.

With this patch gst_soup_http_src_add_range_header() uses
'src->request_position' to set the new range. And request_position is always
the current position (or the requested position after a seek). It's adjusted
every time data is read successfully and no seek request came in since the last
request was sent out.

Basically, 'request_position' is the position where we want to be and
'read_position' is the position where we actually are.

-- 
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