From f5c3e560ceb92783f82f738e99f6f6539fd68082 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 26 Jan 2007 20:20:19 +0000 Subject: [PATCH] Removed 1.3 GB curbs for sources created by burn_file_source_new() --- libburn/file.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libburn/file.c b/libburn/file.c index 809b842..e6c7b09 100644 --- a/libburn/file.c +++ b/libburn/file.c @@ -73,9 +73,6 @@ static off_t file_size(struct burn_source *source) if (fstat(fs->datafd, &buf) == -1) return (off_t) 0; - /* for now we keep it compatible to the old (int) return value */ - if(buf.st_size >= 1308622848) /* 2 GB - 800 MB to prevent rollover */ - return (off_t) 1308622848; return (off_t) buf.st_size; } @@ -126,9 +123,6 @@ static off_t fd_get_size(struct burn_source *source) return fs->fixed_size; if (fstat(fs->datafd, &buf) == -1) return (off_t) 0; - /* for now we keep it compatible to the old (int) return value */ - if (buf.st_size >= 1308622848) /* 2 GB - 800 MB to prevent rollover */ - return (off_t) 1308622848; return buf.st_size; }