[brasero] Don't create unnecessary track after medium copy
- From: Philippe Rouquier <philippr src gnome org>
 
- To: svn-commits-list gnome org
 
- Cc: 
 
- Subject: [brasero] Don't create unnecessary track after medium copy
 
- Date: Sun,  2 Aug 2009 11:43:16 +0000 (UTC)
 
commit 02fecb8e40c5620c0009cc5ba323e646cc0dffc1
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Sat Aug 1 20:32:24 2009 +0200
    Don't create unnecessary track after medium copy
 libbrasero-burn/brasero-burn.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn.c b/libbrasero-burn/brasero-burn.c
index f0f6529..571d34e 100644
--- a/libbrasero-burn/brasero-burn.c
+++ b/libbrasero-burn/brasero-burn.c
@@ -536,7 +536,7 @@ static BraseroBurnResult
 brasero_burn_lock_src_media (BraseroBurn *burn,
 			     GError **error)
 {
-	gchar *failure;
+	gchar *failure = NULL;
 	BraseroMedia media;
 	BraseroMedium *medium;
 	BraseroBurnResult result;
@@ -2321,7 +2321,6 @@ brasero_burn_same_src_dest_image (BraseroBurn *self,
 {
 	gchar *toc = NULL;
 	gchar *image = NULL;
-	BraseroTrackImage *track;
 	GError *ret_error = NULL;
 	BraseroBurnResult result;
 	BraseroBurnPrivate *priv;
@@ -2428,13 +2427,8 @@ brasero_burn_same_src_dest_image (BraseroBurn *self,
 	if (result != BRASERO_BURN_OK)
 		goto end;
 
-	track = brasero_track_image_new ();
-	brasero_track_image_set_source (track, image, toc, brasero_track_type_get_image_format (output));
-	brasero_burn_session_add_track (priv->session, BRASERO_TRACK (track), NULL);
-
-	/* It's good practice to unref the track afterwards as we don't need it
-	 * anymore. BraseroBurnSession refs it. */
-	g_object_unref (track);
+	/* There should be a track at the top of the session stack
+	 * so no need to create a new one */
 
 end:
 	g_free (image);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]