[brasero] Fix a bug in readcd backend that prevented proper report of the size of the output
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fix a bug in readcd backend that prevented proper report of the size of the output
- Date: Wed, 2 Sep 2009 19:43:57 +0000 (UTC)
commit 790002cbf17ec9b42953f3f176b4b316094e5d07
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Wed Sep 2 16:23:32 2009 +0200
Fix a bug in readcd backend that prevented proper report of the size of the output
plugins/cdrkit/burn-readom.c | 3 +--
plugins/cdrtools/burn-readcd.c | 5 ++---
2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/plugins/cdrkit/burn-readom.c b/plugins/cdrkit/burn-readom.c
index 9eb0638..2716b81 100644
--- a/plugins/cdrkit/burn-readom.c
+++ b/plugins/cdrkit/burn-readom.c
@@ -238,8 +238,6 @@ brasero_readom_get_size (BraseroReadom *self,
BraseroTrack *track = NULL;
BraseroTrackType *output = NULL;
- brasero_job_get_current_track (BRASERO_JOB (self), &track);
-
output = brasero_track_type_new ();
brasero_job_get_output_type (BRASERO_JOB (self), output);
@@ -248,6 +246,7 @@ brasero_readom_get_size (BraseroReadom *self,
return BRASERO_BURN_ERR;
}
+ brasero_job_get_current_track (BRASERO_JOB (self), &track);
brasero_track_tag_lookup (track,
BRASERO_TRACK_MEDIUM_ADDRESS_START_TAG,
&value);
diff --git a/plugins/cdrtools/burn-readcd.c b/plugins/cdrtools/burn-readcd.c
index e8514cf..e40a526 100644
--- a/plugins/cdrtools/burn-readcd.c
+++ b/plugins/cdrtools/burn-readcd.c
@@ -241,8 +241,6 @@ brasero_readcd_get_size (BraseroReadcd *self,
BraseroTrack *track = NULL;
BraseroTrackType *output = NULL;
- brasero_job_get_current_track (BRASERO_JOB (self), &track);
-
output = brasero_track_type_new ();
brasero_job_get_output_type (BRASERO_JOB (self), output);
@@ -251,9 +249,10 @@ brasero_readcd_get_size (BraseroReadcd *self,
return BRASERO_BURN_ERR;
}
+ format = brasero_track_type_get_image_format (output);
brasero_track_type_free (output);
- format = brasero_track_type_get_image_format (output);
+ brasero_job_get_current_track (BRASERO_JOB (self), &track);
brasero_track_tag_lookup (track,
BRASERO_TRACK_MEDIUM_ADDRESS_START_TAG,
&value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]