From 0c934886f443716aae0a35a05ef848fe30d373d3 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 29 Jul 2023 00:56:16 -0700 Subject: [PATCH] Don't pause streams, stop instead Do not bother to pause streamed files, instead stop playback when pause is requested. Fixes #372 Signed-off-by: Christopher Snowhill --- Application/PlaybackController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Application/PlaybackController.m b/Application/PlaybackController.m index 02f6457b0..6d58fb397 100644 --- a/Application/PlaybackController.m +++ b/Application/PlaybackController.m @@ -101,6 +101,10 @@ NSString *CogPlaybackDidStopNotficiation = @"CogPlaybackDidStopNotficiation"; } - (IBAction)pause:(id)sender { + if(!([playlistController currentEntry].seekable)) { + return [self stop:sender]; + } + [[NSUserDefaults standardUserDefaults] setInteger:CogStatusPaused forKey:@"lastPlaybackStatus"]; [audioPlayer pause];