brasero r946 - in trunk: . src



Author: philippr
Date: Wed Jul  2 14:39:24 2008
New Revision: 946
URL: http://svn.gnome.org/viewvc/brasero?rev=946&view=rev

Log:
	Fix #506338 â Import Session fails on DVD+R that contains multiple sessions
	use fseeko instead of fseek that can\'t break the 2Gio barrier

	* src/burn-volume-source.c (brasero_volume_source_seek_fd):

Modified:
   trunk/ChangeLog
   trunk/src/burn-volume-source.c

Modified: trunk/src/burn-volume-source.c
==============================================================================
--- trunk/src/burn-volume-source.c	(original)
+++ trunk/src/burn-volume-source.c	Wed Jul  2 14:39:24 2008
@@ -56,8 +56,12 @@
 			       int whence,
 			       GError **error)
 {
-	if (fseek (src->data, block * ISO9660_BLOCK_SIZE, whence) == -1) {
-		BRASERO_BURN_LOG ("fseek () failed at block %lli (%s)", block, strerror (errno));
+	
+	if (fseeko (src->data, (guint64) (block * ISO9660_BLOCK_SIZE), whence) == -1) {
+		BRASERO_BURN_LOG ("fseeko () failed at block %i (= %lli bytes) (%s)",
+				  block,
+				  (guint64) (block * ISO9660_BLOCK_SIZE),
+				  strerror (errno));
 		g_set_error (error,
 			     BRASERO_BURN_ERROR,
 			     BRASERO_BURN_ERROR_GENERAL,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]