diff options
author | waker <wakeroid@gmail.com> | 2011-04-04 21:29:38 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-04 21:33:41 +0200 |
commit | c96280bd3de4c54f1c1762ab6e0321425d126a26 (patch) | |
tree | 70e99e41980c19a211adeb766cc149b908e7891f /playlist.c | |
parent | efd1736048c49285ea8f32112ae2005e435b705d (diff) |
m3u: removed file size limitation on playlist files
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; |