From 7473837814a85deb9d922acd9de0fe337ae6209b Mon Sep 17 00:00:00 2001 From: dvdsk Date: Thu, 23 May 2024 13:10:37 +0200 Subject: [PATCH] add test checking for #578 --- examples/seek_mp3.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/seek_mp3.rs b/examples/seek_mp3.rs index a384d04..5042003 100644 --- a/examples/seek_mp3.rs +++ b/examples/seek_mp3.rs @@ -15,4 +15,8 @@ fn main() { sink.try_seek(Duration::from_secs(4)).unwrap(); sink.sleep_until_end(); + + // wont do anything since the sound has ended already + sink.try_seek(Duration::from_secs(5)).unwrap(); + println!("seek example ended"); }