tests/examples/seek/seek.c: Don't SEEK_SET with a stop time of -1, use SEEK_NONE...
authorJan Schmidt <thaytan@mad.scientist.com>
Wed, 21 Feb 2007 15:36:26 +0000 (15:36 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Wed, 21 Feb 2007 15:36:26 +0000 (15:36 +0000)
Original commit message from CVS:
* tests/examples/seek/seek.c: (do_seek):
Don't SEEK_SET with a stop time of -1, use SEEK_NONE instead.

ChangeLog
tests/examples/seek/seek.c

index d24f9e9..57e9900 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-21  Jan Schmidt  <thaytan@mad.scientist.com>
+
+       * tests/examples/seek/seek.c: (do_seek):
+       Don't SEEK_SET with a stop time of -1, use SEEK_NONE instead.
+
 2007-02-21  Stefan Kost  <ensonic@users.sf.net>
 
        * gst/volume/gstvolume.c: (volume_process_int16),
index 13ca36f..5ac774c 100644 (file)
@@ -1112,7 +1112,8 @@ do_seek (GtkWidget * widget)
 
   if (rate >= 0) {
     s_event = gst_event_new_seek (rate,
-        GST_FORMAT_TIME, flags, GST_SEEK_TYPE_SET, real, GST_SEEK_TYPE_SET, -1);
+        GST_FORMAT_TIME, flags, GST_SEEK_TYPE_SET, real, GST_SEEK_TYPE_NONE,
+        -1);
   } else {
     s_event = gst_event_new_seek (rate,
         GST_FORMAT_TIME, flags, GST_SEEK_TYPE_SET, G_GINT64_CONSTANT (0),