[brasero] Fix a problem with excluded files notproperly added
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Fix a problem with excluded files notproperly added
- Date: Sat, 23 May 2009 11:29:34 -0400 (EDT)
commit 3609014b21bb385f72f731189fa116924aa99965
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sat May 23 17:02:06 2009 +0200
Fix a problem with excluded files notproperly added
---
libbrasero-burn/brasero-data-project.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/libbrasero-burn/brasero-data-project.c b/libbrasero-burn/brasero-data-project.c
index 6661b7c..1417b4c 100644
--- a/libbrasero-burn/brasero-data-project.c
+++ b/libbrasero-burn/brasero-data-project.c
@@ -2491,7 +2491,7 @@ _foreach_grafts_make_list_cb (const gchar *uri,
MakeTrackData *data)
{
GSList *iter;
- gboolean add_to_excluded = FALSE;
+ gboolean add_to_excluded = (uri_node->nodes == NULL);
/* add each node */
for (iter = uri_node->nodes; iter; iter = iter->next) {
@@ -2607,8 +2607,11 @@ brasero_data_project_get_contents (BraseroDataProject *self,
/* This is possible even if the GHashTable is empty since there could be
* only excluded URI inside or hidden nodes like autorun.inf. */
- if (!grafts)
+ if (!callback_data.grafts) {
+ g_slist_foreach (callback_data.excluded, (GFunc) g_free, NULL);
+ g_slist_free (callback_data.excluded);
return FALSE;
+ }
if (joliet_compat) {
/* Make sure that all nodes with incompatible joliet names are
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]