From 3f3e185460b1204ed9420b3d9129f1371a01b6ec Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Sun, 29 Oct 2023 18:50:47 +0100 Subject: Fix return value for playlist_get_resume_info (Only) bookmark_is_bookmarkable_state() seems to require a return value atm. Change-Id: I701031285aad80a46ebca747d06f15d968c0e9c7 --- apps/playlist.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/playlist.c b/apps/playlist.c index 88cb375568..8071874be0 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -2278,9 +2278,7 @@ int playlist_get_resume_info(int *resume_index) { struct playlist_info* playlist = ¤t_playlist; - *resume_index = playlist->index; - - return 0; + return (*resume_index = playlist->index); } /* returns shuffle seed of playlist */ -- cgit v1.2.3