diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 5725c4be85..ecdb45c104 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -564,11 +564,7 @@ static int add_directory_to_playlist(struct playlist_info* playlist, | |||
564 | for (i=0; i<num_files; i++) | 564 | for (i=0; i<num_files; i++) |
565 | { | 565 | { |
566 | /* user abort */ | 566 | /* user abort */ |
567 | #if defined(HAVE_PLAYER_KEYPAD) || defined(HAVE_NEO_KEYPAD) || defined(HAVE_ONDIO_KEYPAD) | 567 | if (button_get(false) == SETTINGS_CANCEL) |
568 | if (button_get(false) == BUTTON_STOP) | ||
569 | #else | ||
570 | if (button_get(false) == BUTTON_OFF) | ||
571 | #endif | ||
572 | { | 568 | { |
573 | result = -1; | 569 | result = -1; |
574 | break; | 570 | break; |
@@ -2016,11 +2012,7 @@ int playlist_insert_playlist(struct playlist_info* playlist, char *filename, | |||
2016 | while ((max = read_line(fd, temp_buf, sizeof(temp_buf))) > 0) | 2012 | while ((max = read_line(fd, temp_buf, sizeof(temp_buf))) > 0) |
2017 | { | 2013 | { |
2018 | /* user abort */ | 2014 | /* user abort */ |
2019 | #if defined(HAVE_PLAYER_KEYPAD) || defined(HAVE_NEO_KEYPAD) || defined(HAVE_ONDIO_KEYPAD) | 2015 | if (button_get(false) == SETTINGS_CANCEL) |
2020 | if (button_get(false) == BUTTON_STOP) | ||
2021 | #else | ||
2022 | if (button_get(false) == BUTTON_OFF) | ||
2023 | #endif | ||
2024 | break; | 2016 | break; |
2025 | 2017 | ||
2026 | if (temp_buf[0] != '#' && temp_buf[0] != '\0') | 2018 | if (temp_buf[0] != '#' && temp_buf[0] != '\0') |
@@ -2384,11 +2376,7 @@ int playlist_save(struct playlist_info* playlist, char *filename) | |||
2384 | int seek; | 2376 | int seek; |
2385 | 2377 | ||
2386 | /* user abort */ | 2378 | /* user abort */ |
2387 | #if defined(HAVE_PLAYER_KEYPAD) || defined(HAVE_NEO_KEYPAD) || defined(HAVE_ONDIO_KEYPAD) | 2379 | if (button_get(false) == SETTINGS_CANCEL) |
2388 | if (button_get(false) == BUTTON_STOP) | ||
2389 | #else | ||
2390 | if (button_get(false) == BUTTON_OFF) | ||
2391 | #endif | ||
2392 | break; | 2380 | break; |
2393 | 2381 | ||
2394 | control_file = playlist->indices[index] & PLAYLIST_INSERT_TYPE_MASK; | 2382 | control_file = playlist->indices[index] & PLAYLIST_INSERT_TYPE_MASK; |