diff options
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/playback.c b/apps/playback.c index cac28bd6e7..59d70842ee 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -1907,11 +1907,13 @@ static int audio_load_track(void) | |||
1907 | break; | 1907 | break; |
1908 | 1908 | ||
1909 | /* Test for broken playlists by probing for the files */ | 1909 | /* Test for broken playlists by probing for the files */ |
1910 | fd = open(path, O_RDONLY); | 1910 | if (file_exists(path)) |
1911 | if (fd >= 0) | 1911 | { |
1912 | break; | 1912 | fd = open(path, O_RDONLY); |
1913 | 1913 | if (fd >= 0) | |
1914 | logf("Open failed"); | 1914 | break; |
1915 | } | ||
1916 | logf("Open failed %s", path); | ||
1915 | 1917 | ||
1916 | /* only skip if failed track has a successor in playlist */ | 1918 | /* only skip if failed track has a successor in playlist */ |
1917 | if (!playlist_peek(playlist_peek_offset + 1, NULL, 0)) | 1919 | if (!playlist_peek(playlist_peek_offset + 1, NULL, 0)) |