souphttpsrc: Allow positive, non-1.0 segment rates

Only negative rates are not supported. Fixes bug #658305.
This commit is contained in:
Sebastian Dröge 2011-09-06 10:33:21 +02:00
parent 077a306054
commit 7b592ff126

View file

@ -1382,7 +1382,7 @@ gst_soup_http_src_do_seek (GstBaseSrc * bsrc, GstSegment * segment)
return FALSE;
}
if (segment->rate != 1.0 || segment->format != GST_FORMAT_BYTES) {
if (segment->rate < 0.0 || segment->format != GST_FORMAT_BYTES) {
GST_WARNING_OBJECT (src, "Invalid seek segment");
return FALSE;
}