summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 7ebe4e1f45..f761014bbf 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -26,7 +26,7 @@
26#include "lcd.h" 26#include "lcd.h"
27#include "dir.h" 27#include "dir.h"
28#include "file.h" 28#include "file.h"
29#include "mpeg.h" 29#include "audio.h"
30#include "menu.h" 30#include "menu.h"
31#include "lang.h" 31#include "lang.h"
32#include "playlist.h" 32#include "playlist.h"
@@ -84,7 +84,7 @@ struct playlist_args {
84 84
85static bool add_to_playlist(int position, bool queue) 85static bool add_to_playlist(int position, bool queue)
86{ 86{
87 bool new_playlist = !(mpeg_status() & MPEG_STATUS_PLAY); 87 bool new_playlist = !(audio_status() & AUDIO_STATUS_PLAY);
88 88
89 if (new_playlist) 89 if (new_playlist)
90 playlist_create(NULL, NULL); 90 playlist_create(NULL, NULL);
@@ -152,12 +152,12 @@ static bool add_to_playlist(int position, bool queue)
152 152
153static bool view_playlist(void) 153static bool view_playlist(void)
154{ 154{
155 bool was_playing = mpeg_status() & MPEG_STATUS_PLAY; 155 bool was_playing = audio_status() & AUDIO_STATUS_PLAY;
156 bool result; 156 bool result;
157 157
158 result = playlist_viewer_ex(selected_file); 158 result = playlist_viewer_ex(selected_file);
159 159
160 if (!was_playing && (mpeg_status() & MPEG_STATUS_PLAY) && 160 if (!was_playing && (audio_status() & AUDIO_STATUS_PLAY) &&
161 onplay_result == ONPLAY_OK) 161 onplay_result == ONPLAY_OK)
162 /* playlist was started from viewer */ 162 /* playlist was started from viewer */
163 onplay_result = ONPLAY_START_PLAY; 163 onplay_result = ONPLAY_START_PLAY;
@@ -181,7 +181,7 @@ static bool playlist_options(void)
181 pstart++; 181 pstart++;
182 } 182 }
183 183
184 if (mpeg_status() & MPEG_STATUS_PLAY) 184 if (audio_status() & AUDIO_STATUS_PLAY)
185 { 185 {
186 items[i].desc = ID2P(LANG_INSERT); 186 items[i].desc = ID2P(LANG_INSERT);
187 args[i].position = PLAYLIST_INSERT; 187 args[i].position = PLAYLIST_INSERT;