tests/examples/seek/seek.c: Use 64 bit constant GST_CLOCK_TIME_NONE instead of plain -1.
authorStefan Kost <ensonic@users.sourceforge.net>
Thu, 24 Jul 2008 13:19:26 +0000 (13:19 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Thu, 24 Jul 2008 13:19:26 +0000 (13:19 +0000)
Original commit message from CVS:
* tests/examples/seek/seek.c:
Use 64 bit constant GST_CLOCK_TIME_NONE instead of plain -1.

ChangeLog
tests/examples/seek/seek.c

index 513f8be..817910b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-24  Stefan Kost  <ensonic@users.sf.net>
+
+       * tests/examples/seek/seek.c:
+         Use 64 bit constant GST_CLOCK_TIME_NONE instead of plain -1.
+
 2008-07-23  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
 
        * gst/audioconvert/audioconvert.h:
index cdce637..07e3192 100644 (file)
@@ -1288,7 +1288,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_SET,
+        GST_CLOCK_TIME_NONE);
     GST_DEBUG ("seek with rate %lf to %" GST_TIME_FORMAT " / %" GST_TIME_FORMAT,
         rate, GST_TIME_ARGS (real), GST_TIME_ARGS (duration));
   } else {
@@ -1603,7 +1604,7 @@ rate_spinbutton_changed_cb (GtkSpinButton * button, GstPipeline * pipeline)
   if (rate >= 0) {
     s_event = gst_event_new_seek (rate,
         GST_FORMAT_TIME, flags, GST_SEEK_TYPE_SET, position,
-        GST_SEEK_TYPE_SET, -1);
+        GST_SEEK_TYPE_SET, GST_CLOCK_TIME_NONE);
   } else {
     s_event = gst_event_new_seek (rate,
         GST_FORMAT_TIME, flags, GST_SEEK_TYPE_SET, G_GINT64_CONSTANT (0),