From b85ec0cedaf28b5252162b365881520fdb80c452 Mon Sep 17 00:00:00 2001 From: Felix Kaaman Date: Mon, 27 Jan 2020 22:32:52 +0100 Subject: Change method of sending EOS to GStreamer pipeline (#24) Uses message bus instead of events to elements --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index d1b34df..f4f7559 100644 --- a/src/main.rs +++ b/src/main.rs @@ -192,7 +192,7 @@ impl Application { if !self.player.is_started() { if !playlist.is_empty() { - self.player.stop_current(); + self.player.stop_current()?; } } else { self.player.play()?; @@ -214,7 +214,7 @@ impl Application { let playlist = self.playlist.lock().expect("Mutex was not poisoned"); if !playlist.is_empty() { info!("Skipping to next track"); - self.player.stop_current(); + self.player.stop_current()?; } else { info!("Playlist empty, cannot skip"); self.player.reset()?; -- cgit v1.2.3-70-g09d2