[gst-devel] vcdsrc doesn't read past 60 minutes

joshua at eth.net joshua at eth.net
Fri Nov 16 11:23:04 CET 2001


New CD-R blanks are 70 minutes long.  vcdsrc arbitrarily stops reading after
60 minutes.  Please apply the attached patch.  ;-)

Index: vcdsrc.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/plugins/vcdsrc/vcdsrc.c,v
retrieving revision 1.13
diff -u -r1.13 vcdsrc.c
--- vcdsrc.c	2001/10/25 21:06:00	1.13
+++ vcdsrc.c	2001/11/16 19:01:06
@@ -240,7 +240,7 @@
   offset = vcdsrc->trackoffset + vcdsrc->curoffset;
   msf->cdmsf_frame0 = offset % 75;
   msf->cdmsf_sec0 = (offset / 75) % 60;
-  msf->cdmsf_min0 = (offset / (75 * 60)) % 60;
+  msf->cdmsf_min0 = offset / (75 * 60);
   gst_info("msf is %d:%d:%d\n",msf->cdmsf_min0,msf->cdmsf_sec0,
            msf->cdmsf_frame0);
   if (ioctl(vcdsrc->fd,CDROMREADRAW,msf)) {





More information about the gstreamer-devel mailing list