diff options
-rw-r--r-- | apps/playlist.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 9adc2c088c..3c9aa1958f 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -2835,11 +2835,15 @@ int playlist_insert_directory(struct playlist_info* playlist, | |||
2835 | 2835 | ||
2836 | display_playlist_count(count, count_str); | 2836 | display_playlist_count(count, count_str); |
2837 | 2837 | ||
2838 | cpu_boost(true); | ||
2839 | |||
2838 | result = add_directory_to_playlist(playlist, dirname, &position, queue, | 2840 | result = add_directory_to_playlist(playlist, dirname, &position, queue, |
2839 | &count, recurse); | 2841 | &count, recurse); |
2840 | 2842 | ||
2841 | sync_control(playlist, false); | 2843 | sync_control(playlist, false); |
2842 | 2844 | ||
2845 | cpu_boost(false); | ||
2846 | |||
2843 | display_playlist_count(count, count_str); | 2847 | display_playlist_count(count, count_str); |
2844 | 2848 | ||
2845 | if ((audio_status() & AUDIO_STATUS_PLAY) && playlist->started) | 2849 | if ((audio_status() & AUDIO_STATUS_PLAY) && playlist->started) |
@@ -2900,6 +2904,8 @@ int playlist_insert_playlist(struct playlist_info* playlist, char *filename, | |||
2900 | 2904 | ||
2901 | display_playlist_count(count, count_str); | 2905 | display_playlist_count(count, count_str); |
2902 | 2906 | ||
2907 | cpu_boost(true); | ||
2908 | |||
2903 | while ((max = read_line(fd, temp_buf, sizeof(temp_buf))) > 0) | 2909 | while ((max = read_line(fd, temp_buf, sizeof(temp_buf))) > 0) |
2904 | { | 2910 | { |
2905 | /* user abort */ | 2911 | /* user abort */ |
@@ -2957,6 +2963,8 @@ int playlist_insert_playlist(struct playlist_info* playlist, char *filename, | |||
2957 | 2963 | ||
2958 | sync_control(playlist, false); | 2964 | sync_control(playlist, false); |
2959 | 2965 | ||
2966 | cpu_boost(false); | ||
2967 | |||
2960 | display_playlist_count(count, count_str); | 2968 | display_playlist_count(count, count_str); |
2961 | 2969 | ||
2962 | if ((audio_status() & AUDIO_STATUS_PLAY) && playlist->started) | 2970 | if ((audio_status() & AUDIO_STATUS_PLAY) && playlist->started) |
@@ -3302,6 +3310,8 @@ int playlist_save(struct playlist_info* playlist, char *filename) | |||
3302 | 3310 | ||
3303 | display_playlist_count(count, str(LANG_PLAYLIST_SAVE_COUNT)); | 3311 | display_playlist_count(count, str(LANG_PLAYLIST_SAVE_COUNT)); |
3304 | 3312 | ||
3313 | cpu_boost(true); | ||
3314 | |||
3305 | index = playlist->first_index; | 3315 | index = playlist->first_index; |
3306 | for (i=0; i<playlist->amount; i++) | 3316 | for (i=0; i<playlist->amount; i++) |
3307 | { | 3317 | { |
@@ -3393,5 +3403,7 @@ int playlist_save(struct playlist_info* playlist, char *filename) | |||
3393 | 3403 | ||
3394 | } | 3404 | } |
3395 | 3405 | ||
3406 | cpu_boost(false); | ||
3407 | |||
3396 | return result; | 3408 | return result; |
3397 | } | 3409 | } |