Index: ext/cdparanoia/gstcdparanoia.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins/ext/cdparanoia/gstcdparanoia.c,v
retrieving revision 1.49.2.8
diff -u -p -r1.49.2.8 gstcdparanoia.c
--- ext/cdparanoia/gstcdparanoia.c	9 Jun 2005 17:11:22 -0000	1.49.2.8
+++ ext/cdparanoia/gstcdparanoia.c	13 Jun 2005 09:40:42 -0000
@@ -1005,7 +1005,7 @@ cdparanoia_event (GstPad * pad, GstEvent
             break;
         }
         if (track < 0 || track >= src->d->tracks ||
-            (endoffset != -1 && (endtrack < 0 || endtrack >= src->d->tracks))) {
+            (endoffset != -1 && (endtrack < 0 || endtrack >= src->d->tracks + 1))) {
           GST_WARNING ("track %d or endtrack %d is out of range (%d avail)",
               track, endtrack, src->d->tracks);
           goto error;
