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 21c6da6764c0cd015e9f3c5eecba36e297187deb, 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:
parent
0e1f5a0385
commit
78ce34b37f
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user