From 31027131ef0c189b8f678afa9886e10c54d5fee3 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sat, 12 Oct 2024 18:17:31 +0000 Subject: [PATCH] chill out with cpu usage --- src/playbin.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playbin.vala b/src/playbin.vala index 858919e..a6d097c 100644 --- a/src/playbin.vala +++ b/src/playbin.vala @@ -55,13 +55,13 @@ class Playbin : Object { //souphttpsrc.user_agent = "Wavelet/0.1.0 (Linux)"; // WAVELET_VERSION // regularly update position - Idle.add (() => { + Timeout.add (500, () => { int64 new_position; if (this.playbin.query_position (Gst.Format.TIME, out new_position)) { this.set_position (new_position < this.duration ? new_position : this.duration); } - // rerun when idle + // keep rerunning return true; });