souphttpsrc: Allow positive, non-1.0 segment rates
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Sep 2011 08:33:21 +0000 (10:33 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 6 Sep 2011 08:34:35 +0000 (10:34 +0200)
Only negative rates are not supported. Fixes bug #658305.

ext/soup/gstsouphttpsrc.c

index 131fe74..8735f4f 100644 (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;
   }