From 3456ed16d4f8f4769118a531771aa7cf1b8ce6e3 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Fri, 13 Oct 2006 15:20:29 +0000 Subject: [PATCH] tests/examples/seek/seek.c: Segment seeking needs to use the rate and set stop to -1. Original commit message from CVS: 2006-10-13 Julien MOUTTE * 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 | 6 ++++++ tests/examples/seek/seek.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 781aea9c2e..25dae7d3c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-10-13 Julien MOUTTE + + * 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 * gst-libs/gst/audio/gstbaseaudiosink.c: diff --git a/tests/examples/seek/seek.c b/tests/examples/seek/seek.c index 956c0ad343..5b5c1557b3 100644 --- a/tests/examples/seek/seek.c +++ b/tests/examples/seek/seek.c @@ -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");