[brasero] Make sure that in BraseroTrackDataCfg the files that are excluded (because > 2GiB, or because they a
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Make sure that in BraseroTrackDataCfg the files that are excluded (because > 2GiB, or because they a
- Date: Sun, 26 Jul 2009 12:20:29 +0000 (UTC)
commit bab8ddbbc603b79f45c995513178ca418242d400
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Fri Jul 24 14:42:56 2009 +0200
Make sure that in BraseroTrackDataCfg the files that are excluded (because > 2GiB, or because they are too deep, ...) while exploring automatically a parent directory are really excluded from the tree by adding an empty graft point
libbrasero-burn/brasero-data-project.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/libbrasero-burn/brasero-data-project.c b/libbrasero-burn/brasero-data-project.c
index f1a3536..57e8242 100644
--- a/libbrasero-burn/brasero-data-project.c
+++ b/libbrasero-burn/brasero-data-project.c
@@ -2348,8 +2348,11 @@ brasero_data_project_add_node_from_info (BraseroDataProject *self,
size = g_file_info_get_size (info);
if (BRASERO_BYTES_TO_SECTORS (size, 2048) > BRASERO_FILE_2G_LIMIT)
- if (brasero_data_project_file_signal (self, G2_FILE_SIGNAL, name))
+ if (brasero_data_project_file_signal (self, G2_FILE_SIGNAL, name)) {
+ /* we need to exclude this uri */
+ brasero_data_project_exclude_uri (self, uri);
return NULL;
+ }
}
/* This is a special case where we won't try all checks for deep nested
* files. Since this function is only used by brasero-data-vfs.c to
@@ -2357,8 +2360,11 @@ brasero_data_project_add_node_from_info (BraseroDataProject *self,
* just check for a directory to have a depth of 6 (means parent has a
* depth of 5. */
else if (brasero_file_node_get_depth (parent) == 5) {
- if (brasero_data_project_file_signal (self, DEEP_DIRECTORY_SIGNAL, name))
+ if (brasero_data_project_file_signal (self, DEEP_DIRECTORY_SIGNAL, name)) {
+ /* we need to exclude this uri */
+ brasero_data_project_exclude_uri (self, uri);
return NULL;
+ }
}
/* make sure that name doesn't exist */
@@ -2373,8 +2379,11 @@ brasero_data_project_add_node_from_info (BraseroDataProject *self,
brasero_file_node_set_from_info (node, stats, info);
brasero_data_project_virtual_sibling (self, node, sibling);
}
- else if (brasero_data_project_node_signal (self, NAME_COLLISION_SIGNAL, sibling))
+ else if (brasero_data_project_node_signal (self, NAME_COLLISION_SIGNAL, sibling)) {
+ /* we need to exclude this uri */
+ brasero_data_project_exclude_uri (self, uri);
return NULL;
+ }
else {
/* The node existed and the user wants the existing to
* be replaced, so we delete that node (since the new
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]