GNOME Bugzilla – Bug 317630
cdparanoia seems to read one sector too much
Last modified: 2005-09-30 21:33:00 UTC
Hi, Gustavo Noronha Silva reported in Debian bug http://bugs.debian.org/330954 that gnome-cd locks at the end of the last track when using cdparanoia. He proposes the following patch fixing the issue for him: --- ext/cdparanoia/gstcdparanoia.c~ 2005-08-29 11:50:49.000000000 +0000 +++ ext/cdparanoia/gstcdparanoia.c 2005-09-30 15:53:19.155742291 +0000 @@ -553,7 +553,7 @@ } /* stop things apropriatly */ - if (src->cur_sector > src->segment_end_sector) { + if (src->cur_sector >= src->segment_end_sector) { GST_DEBUG ("setting EOS"); buf = GST_BUFFER (gst_event_new (GST_EVENT_EOS)); I'm going to attach his diff as a real file. Cheers,
Created attachment 52876 [details] [review] don't play the last segment
Problem and fix verified and committed to CVS/0.8 branch: 2005-09-30 Gustavo Noronha Silva <kov at debian dot org> Reviewed by: Tim-Philipp Muller <tim at centricular dot net> * ext/cdparanoia/gstcdparanoia.c: (cdparanoia_get): Fix EOS detection for last title (fixes gnome-cd hanging after last track ends) (#317630). Thanks a lot for the patch! Cheers -Tim