tests/examples/seek/seek.c: Don't SEEK_SET with a stop time of -1, use SEEK_NONE instead.

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.
This commit is contained in:
Jan Schmidt 2007-02-21 15:36:26 +00:00
parent 1b01b41b69
commit 2d71ddc3c9
2 changed files with 7 additions and 1 deletions

View file

@ -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),

View 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),