tests/examples/seek/seek.c: Segment seeking needs to use the rate and set stop to -1.
authorJulien Moutte <julien@moutte.net>
Fri, 13 Oct 2006 15:20:29 +0000 (15:20 +0000)
committerJulien Moutte <julien@moutte.net>
Fri, 13 Oct 2006 15:20:29 +0000 (15:20 +0000)
Original commit message from CVS:
2006-10-13  Julien MOUTTE  <julien@moutte.net>

* tests/examples/seek/seek.c: (do_seek), (start_seek),
(rate_spinbutton_changed_cb), (segment_done),
(msg_state_changed):
Segment seeking needs to use the rate and set stop to -1.

ChangeLog
tests/examples/seek/seek.c

index 781aea9c2e15d56ab3729aeee9a0a1b9b7015be7..25dae7d3c917fdbc49943932eb55ec1994544622 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-10-13  Julien MOUTTE  <julien@moutte.net>
+
+       * tests/examples/seek/seek.c: (do_seek), (start_seek),
+       (rate_spinbutton_changed_cb), (segment_done), (msg_state_changed):
+       Segment seeking needs to use the rate and set stop to -1.
+
 2006-10-13  Wim Taymans  <wim@fluendo.com>
 
        * gst-libs/gst/audio/gstbaseaudiosink.c:
index 956c0ad3435822e2defcf9ed862185329602796a..5b5c1557b395a6b3b76649febed75992715c5214 100644 (file)
@@ -1327,8 +1327,8 @@ segment_done (GstBus * bus, GstMessage * message, GstPipeline * pipeline)
   if (loop_seek)
     flags |= GST_SEEK_FLAG_SEGMENT;
 
-  event = gst_event_new_seek (1.0,
-      GST_FORMAT_TIME, flags, GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_NONE, 0);
+  event = gst_event_new_seek (rate,
+      GST_FORMAT_TIME, flags, GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_SET, -1);
 
   GST_DEBUG ("segmeent seek to start");