changeset 30750:b9ec8956164f

A playlist entry number of 0 is invalid for pls playlists.
author reimar
date Sun, 28 Feb 2010 09:39:30 +0000
parents 88cd611f49dd
children a375d947381b
files playtreeparser.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/playtreeparser.c	Sun Feb 28 09:37:35 2010 +0000
+++ b/playtreeparser.c	Sun Feb 28 09:39:30 2010 +0000
@@ -256,7 +256,7 @@
   }
 
   num = atoi(line);
-  if(num < 0 || num > limit) {
+  if(num <= 0 || num > limit) {
     if (max_entry >= limit) {
         mp_msg(MSGT_PLAYTREE, MSGL_WARN, "Too many index entries\n");
         return 0;