summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-04 21:29:38 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-04 21:33:41 +0200
commitc96280bd3de4c54f1c1762ab6e0321425d126a26 (patch)
tree70e99e41980c19a211adeb766cc149b908e7891f /playlist.c
parentefd1736048c49285ea8f32112ae2005e435b705d (diff)
m3u: removed file size limitation on playlist files
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/playlist.c b/playlist.c
index 2703dcb4..0e8b46d8 100644
--- a/playlist.c
+++ b/playlist.c
@@ -1105,11 +1105,6 @@ pl_insert_m3u (playItem_t *after, const char *fname, int *pabort, int (*cb)(play
trace ("file %s is too large to be a playlist\n", fname);
return NULL;
}
- if (sz < 30) {
- vfs_fclose (fp);
- trace ("file %s is too small to be a playlist (%d)\n", fname, sz);
- return NULL;
- }
trace ("loading m3u...\n");
uint8_t buffer[sz];
vfs_fread (buffer, 1, sz, fp);
@@ -1173,7 +1168,7 @@ pl_insert_pls (playItem_t *after, const char *fname, int *pabort, int (*cb)(play
trace ("file %s is too large to be a playlist\n", fname);
return NULL;
}
- if (sz < 30) {
+ if (sz < 10) {
vfs_fclose (fp);
trace ("file %s is too small to be a playlist (%d)\n", fname, sz);
return NULL;