xmltv: fixed episode/season count being off by one.

(cherry picked from commit cbae62c053)
This commit is contained in:
John Törblom 2013-04-16 13:41:36 +02:00 committed by Adam Sutton
parent 8e08c9de08
commit c2b8a0f9af

View file

@ -184,8 +184,8 @@ static const char *xmltv_ns_get_parse_num
out:
if(ap) *ap = a + 1;
if(bp) *bp = b + 1;
if(ap && a >= 0) *ap = a + 1;
if(bp && b >= 0) *bp = b;
return s;
}