gstreamer/ext/soup
Michael Olbrich 8666b7d871 souphttpsrc: reset read_position when reading fails
souphttpsrc maintains two variables for the position:
 * 'request_position' is where we want to be
 * 'read_position' is where we are
During Normal operations both are updated in sync when data arrives. A seek
changes 'request_position' but not 'read_position'.
When the two positions get out of sync, then a new request is send and the
'Range' header is adjusted to the current 'request_position'.

Without this patch, if reading fails, then the source is destroyed. This
triggers a new request, but the range remains unchanged. As a result, the
old range is used and old data will be read.

Changing the 'read_position' to -1 makes it explicitly different from
'request_position' and as a result the 'Range' header is updated correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=773509
2016-10-26 16:57:28 +03:00
..
gstsoup.c soup: work around frequent deadlocks in GLib type initialisation 2016-06-17 19:59:13 +01:00
gstsouphttpclientsink.c Revert "WIP revert soup" 2016-06-06 10:47:52 +03:00
gstsouphttpclientsink.h souphttpclientsink: Add the retry and retry-delay properties 2015-10-14 15:23:00 +03:00
gstsouphttpsrc.c souphttpsrc: reset read_position when reading fails 2016-10-26 16:57:28 +03:00
gstsouphttpsrc.h souphttpsrc: dynamically adjust blocksize 2016-06-29 09:51:02 -03:00
gstsouputils.c souputils: Fix compiler warning 2014-02-12 10:08:50 +01:00
gstsouputils.h souphttp*: add ability to do HTTP session logging 2014-02-11 17:50:44 -03:00
Makefile.am Revert "WIP revert soup" 2016-06-06 10:47:52 +03:00
meson.build Add support for Meson as alternative/parallel build system 2016-08-20 11:21:12 +01:00