brasero r1333 - in trunk: . src/plugins/libburnia
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1333 - in trunk: . src/plugins/libburnia
- Date: Tue, 30 Sep 2008 19:36:42 +0000 (UTC)
Author: philippr
Date: Tue Sep 30 19:36:41 2008
New Revision: 1333
URL: http://svn.gnome.org/viewvc/brasero?rev=1333&view=rev
Log:
Fix #552834 â burning image file fails
* src/plugins/libburnia/burn-libburn.c
(brasero_libburn_setup_session_file),
(brasero_libburn_start_record), (brasero_libburn_clock_tick):
Modified:
trunk/ChangeLog
trunk/src/plugins/libburnia/burn-libburn.c
Modified: trunk/src/plugins/libburnia/burn-libburn.c
==============================================================================
--- trunk/src/plugins/libburnia/burn-libburn.c (original)
+++ trunk/src/plugins/libburnia/burn-libburn.c Tue Sep 30 19:36:41 2008
@@ -399,6 +399,7 @@
}
else if (type.type == BRASERO_TRACK_TYPE_IMAGE) {
gchar *imagepath;
+ gint64 size;
gint mode;
if (type.subtype.img_format == BRASERO_IMAGE_FORMAT_BIN) {
@@ -415,10 +416,18 @@
if (!imagepath)
return BRASERO_BURN_ERR;
+ result = brasero_track_get_image_size (track,
+ NULL,
+ NULL,
+ &size,
+ error);
+ if (result != BRASERO_BURN_OK)
+ return BRASERO_BURN_ERR;
+
result = brasero_libburn_add_file_track (session,
imagepath,
mode,
- -1,
+ size,
priv->pvd,
error);
}
@@ -465,6 +474,7 @@
GError **error)
{
guint64 rate;
+ gchar reason [4096];
BraseroMedia media;
BraseroBurnFlag flags;
BraseroBurnResult result;
@@ -524,6 +534,15 @@
brasero_job_get_rate (BRASERO_JOB (self), &rate);
burn_drive_set_speed (priv->ctx->drive, rate, 0);
+
+ if (burn_precheck_write (opts, priv->ctx->disc, reason, 0) < 1) {
+ g_set_error (error,
+ BRASERO_BURN_ERROR,
+ BRASERO_BURN_ERROR_GENERAL,
+ reason);
+ return BRASERO_BURN_ERR;
+ }
+
burn_disc_write (opts, priv->ctx->disc);
burn_write_opts_free (opts);
@@ -727,6 +746,7 @@
/* Double check that everything went well */
if (!burn_drive_wrote_well (priv->ctx->drive)) {
+ BRASERO_JOB_LOG (job, "Something went wrong");
brasero_job_error (job,
g_error_new (BRASERO_BURN_ERROR,
BRASERO_BURN_ERROR_GENERAL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]