reverse-play: fix seek to end when starting reverse
authorJan Schmidt <jan@centricular.com>
Mon, 8 Dec 2014 07:53:35 +0000 (18:53 +1100)
committerJan Schmidt <jan@centricular.com>
Mon, 8 Dec 2014 07:53:35 +0000 (18:53 +1100)
Start reverse playback by actually seeking to the end of
the file.

tests/icles/test-reverseplay.c

index 5b5ea87..e562a04 100644 (file)
@@ -91,7 +91,7 @@ eos_cb (GstBus * bus, GstMessage * msg, PlayState * state)
     state->fwd_play = FALSE;
     gst_element_seek (state->pipe, -1.0, GST_FORMAT_TIME,
         GST_SEEK_FLAG_ACCURATE | GST_SEEK_FLAG_FLUSH,
-        GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_NONE, -1);
+        GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_END, 0);
 
     return;
   }