Index: ext/cdparanoia/gstcdparanoia.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins/ext/cdparanoia/gstcdparanoia.c,v
retrieving revision 1.49.2.9
diff -u -r1.49.2.9 gstcdparanoia.c
--- ext/cdparanoia/gstcdparanoia.c	13 Jun 2005 10:02:59 -0000	1.49.2.9
+++ ext/cdparanoia/gstcdparanoia.c	3 Jul 2005 13:06:22 -0000
@@ -273,7 +273,7 @@
           "Type of checking to perform", GST_TYPE_PARANOIA_MODE, 0,
           G_PARAM_READWRITE));
   g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DISCID,
-      g_param_spec_string ("discid", "discid", "The dics id", NULL,
+      g_param_spec_string ("discid", "discid", "The disc id", NULL,
           G_PARAM_READABLE));
 
   /* tags */
@@ -841,13 +841,15 @@
     cdda_speed_set (src->d, src->read_speed);
   }
 
-  /* save thse ones - skip lead-in */
+  /* save thse ones - skip lead-in in
+   * in track mode, we need last_sector set to play the last track.
+   */
+  src->last_sector = cdda_disc_lastsector (src->d);
   if (src->track_mode) {
     src->first_sector = get_first_sector (src, src->cur_track);
     src->last_sector = get_first_sector (src, src->cur_track + 1) - 1;
   } else {
     src->first_sector = cdda_track_firstsector (src->d, 1);
-    src->last_sector = cdda_disc_lastsector (src->d);
   }
 
   /* this is the default segment we will play */
