From 667db357c8b361cb67530644cff928a25e480577 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 12 Sep 2007 19:59:56 +0000 Subject: [PATCH] Fixed bug with direct_write_amount=0 --- libburn/trunk/cdrskin/cdrskin.c | 9 +++++++-- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin.c b/libburn/trunk/cdrskin/cdrskin.c index fb2d9830..5bb9b316 100644 --- a/libburn/trunk/cdrskin/cdrskin.c +++ b/libburn/trunk/cdrskin/cdrskin.c @@ -65,6 +65,7 @@ Compilation within cdrskin-* : cd cdrskin cc -g -I.. -DCdrskin_build_timestamP='...' \ + -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 \ -o cdrskin cdrskin.c cdrfifo.c cleanup.c \ -L../libburn/.libs -lburn -lpthread @@ -72,12 +73,13 @@ or cd .. cc -g -I. -DCdrskin_build_timestamP='...' \ + -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 \ -o cdrskin/cdrskin cdrskin/cdrskin.c cdrskin/cdrfifo.c cdrskin/cleanup.c \ libburn/async.o libburn/crc.o libburn/debug.o libburn/drive.o \ libburn/file.o libburn/init.o libburn/lec.o \ libburn/mmc.o libburn/options.o libburn/sbc.o libburn/sector.o \ libburn/sg.o libburn/spc.o libburn/source.o libburn/structure.o \ - libburn/toc.o libburn/util.o libburn/write.o \ + libburn/toc.o libburn/util.o libburn/write.o libburn/read.o \ libburn/libdax_audioxtr.o libburn/libdax_msgs.o \ -lpthread @@ -5463,7 +5465,10 @@ int Cdrskin_direct_write(struct CdrskiN *skin, int flag) fprintf(stderr,"Beginning direct write (start=%.fk,amount=%s) ...\n", (double) (byte_address/1024),amount_text); for(i= 0; i 0 ? alignment : 2048); + else + chunksize= data_count-i; if(chunksize>max_chunksize) chunksize= max_chunksize; diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 408a5464..d6baae17 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2007.09.12.195206" +#define Cdrskin_timestamP "2007.09.12.200106"