try accurate seeking

This commit is contained in:
Erica Z 2024-10-16 21:45:50 +02:00
parent ca3de608fd
commit e1b6b19c03

View file

@ -211,7 +211,7 @@ class Playbin : GLib.Object {
}
public void seek (int64 position) {
if (!this.playbin.seek_simple (Gst.Format.TIME, Gst.SeekFlags.FLUSH, position)) {
if (!this.playbin.seek_simple (Gst.Format.TIME, Gst.SeekFlags.FLUSH | Gst.SeekFlags.ACCURATE, position)) {
warning ("could not seek");
}
}