[brasero] Properly set the file node member is_2GiB when its size > 2GiB



commit ba0145e805eb17b66984b78ed3b2a5cd8a6277cd
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Fri Oct 2 16:42:48 2009 +0200

    Properly set the file node member is_2GiB when its size > 2GiB

 libbrasero-burn/brasero-file-node.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libbrasero-burn/brasero-file-node.c b/libbrasero-burn/brasero-file-node.c
index b2fac94..2fc835f 100644
--- a/libbrasero-burn/brasero-file-node.c
+++ b/libbrasero-burn/brasero-file-node.c
@@ -862,10 +862,14 @@ brasero_file_node_set_from_info (BraseroFileNode *node,
 
 		sectors = BRASERO_BYTES_TO_SECTORS (g_file_info_get_size (info), 2048);
 
-		if (sectors > BRASERO_FILE_2G_LIMIT && BRASERO_FILE_NODE_SECTORS (node) <= BRASERO_FILE_2G_LIMIT)
+		if (sectors > BRASERO_FILE_2G_LIMIT && BRASERO_FILE_NODE_SECTORS (node) <= BRASERO_FILE_2G_LIMIT) {
+			node->is_2GiB = 1;
 			stats->num_2GiB ++;
-		else if (sectors <= BRASERO_FILE_2G_LIMIT && BRASERO_FILE_NODE_SECTORS (node) > BRASERO_FILE_2G_LIMIT)
+		}
+		else if (sectors <= BRASERO_FILE_2G_LIMIT && BRASERO_FILE_NODE_SECTORS (node) > BRASERO_FILE_2G_LIMIT) {
+			node->is_2GiB = 0;
 			stats->num_2GiB --;
+		}
 
 		/* The node isn't grafted and it's a file. So we must propagate
 		 * its size up to the parent graft node. */



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