tests: fixed fake soup http src plugin

The soup http src changed the way it interprets the seek segment stop value.
Previously it was inclusive, now it is not (see commit
21c6da6764,
bug https://bugzilla.gnome.org/show_bug.cgi?id=748316)

Updated fake soup http src to also consider segment stop not inclusive.

https://bugzilla.gnome.org/show_bug.cgi?id=756322
This commit is contained in:
Florin Apostol 2015-10-16 18:36:20 +01:00 committed by Vincent Penquerc'h
parent 0e1f5a0385
commit 78ce34b37f

View file

@ -235,14 +235,14 @@ gst_fake_soup_http_src_do_seek (GstBaseSrc * basesrc, GstSegment * segment)
return FALSE; return FALSE;
} }
if (segment->stop != -1 && segment->stop + 1 > src->size) { if (segment->stop != -1 && segment->stop > src->size) {
return FALSE; return FALSE;
} }
src->position = segment->start; src->position = segment->start;
if (segment->stop != -1) { if (segment->stop != -1) {
src->segment_end = segment->stop + 1; src->segment_end = segment->stop;
} }
return TRUE; return TRUE;