[MPlayer-dev-eng] [PATCH] old playtreeparser patch

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Sat Oct 6 18:53:28 CEST 2007


Hello.

I've found this laying around. Seems to fix some off-by-one bug in
playtreeparser, but I don't know the code. Cc'ing albeu, because it's his
code.

Regards,
R.

-- 
MPlayer developer and RPMs maintainer: http://mplayerhq.hu http://rpm.livna.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
-------------- next part --------------
diff -urN MPlayer-0.90.orig/playtreeparser.c MPlayer-0.90/playtreeparser.c
--- MPlayer-0.90.orig/playtreeparser.c	2003-02-06 20:57:25.000000000 +0000
+++ MPlayer-0.90/playtreeparser.c	2003-08-05 03:21:59.000000000 +0000
@@ -226,7 +226,7 @@
   }
 
   num = atoi(line);
-  if(num < 0) {
+  if(num <= 0) {
     num = max_entry+1;
     mp_msg(MSGT_PLAYTREE,MSGL_WARN,"No entry index in entry %s\nAssuming %d\n",line,num);
   }


More information about the MPlayer-dev-eng mailing list