diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index b349799269..4e4e3ed42a 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -2082,8 +2082,13 @@ int playlist_add(const char *filename) | |||
2082 | struct playlist_info* playlist = ¤t_playlist; | 2082 | struct playlist_info* playlist = ¤t_playlist; |
2083 | int len = strlen(filename); | 2083 | int len = strlen(filename); |
2084 | 2084 | ||
2085 | if((len+1 > playlist->buffer_size - playlist->buffer_end_pos) || | 2085 | if(len+1 > playlist->buffer_size - playlist->buffer_end_pos) |
2086 | (playlist->amount >= playlist->max_playlist_size)) | 2086 | { |
2087 | notify_buffer_full(); | ||
2088 | return -2; | ||
2089 | } | ||
2090 | |||
2091 | if(playlist->amount >= playlist->max_playlist_size) | ||
2087 | { | 2092 | { |
2088 | notify_buffer_full(); | 2093 | notify_buffer_full(); |
2089 | return -1; | 2094 | return -1; |