[brasero] Fix problem where brasero does not respect the user's choice regarding SVCD/VCD type choice in some



commit ee4c47c2ad2a419be01efeecc5b0aa4d3b051688
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Sat Aug 15 14:41:25 2009 +0200

    Fix problem where brasero does not respect the user's choice regarding SVCD/VCD type choice in some cases

 libbrasero-burn/brasero-image-properties.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/libbrasero-burn/brasero-image-properties.c b/libbrasero-burn/brasero-image-properties.c
index 638506b..18cece3 100644
--- a/libbrasero-burn/brasero-image-properties.c
+++ b/libbrasero-burn/brasero-image-properties.c
@@ -301,17 +301,20 @@ brasero_image_properties_response (GtkFileChooser *chooser,
 
 	if (priv->is_video) {
 		if (format == BRASERO_IMAGE_FORMAT_CUE) {
-			gboolean res;
+			gboolean res = TRUE;
 			GValue *value;
 
 			value = g_new0 (GValue, 1);
 			g_value_init (value, G_TYPE_INT);
 
-			res = brasero_image_type_chooser_get_VCD_type (BRASERO_IMAGE_TYPE_CHOOSER (priv->format));
+			/* There should always be a priv->format in this case but who knows... */
+			if (priv->format)
+				res = brasero_image_type_chooser_get_VCD_type (BRASERO_IMAGE_TYPE_CHOOSER (priv->format));
+
 			if (res)
 				g_value_set_int (value, BRASERO_SVCD);
 			else
-				g_value_set_int (value, BRASERO_SVCD);
+				g_value_set_int (value, BRASERO_VCD_V2);
 
 			brasero_burn_session_tag_add (BRASERO_BURN_SESSION (priv->session),
 						      BRASERO_VCD_TYPE,



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