[MPlayer-cvslog] r30792 - trunk/playtreeparser.c
reimar
subversion at mplayerhq.hu
Sun Feb 28 10:39:30 CET 2010
Author: reimar
Date: Sun Feb 28 10:39:30 2010
New Revision: 30792
Log:
A playlist entry number of 0 is invalid for pls playlists.
Modified:
trunk/playtreeparser.c
Modified: trunk/playtreeparser.c
==============================================================================
--- trunk/playtreeparser.c Sun Feb 28 10:37:35 2010 (r30791)
+++ trunk/playtreeparser.c Sun Feb 28 10:39:30 2010 (r30792)
@@ -256,7 +256,7 @@ pls_read_entry(char* line,pls_entry_t**
}
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;
More information about the MPlayer-cvslog
mailing list