mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
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:
parent
0e1f5a0385
commit
78ce34b37f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue