[Xfce4-commits] [apps/xfburn] 01/01: Use iso9660 level 3 and allow larger files.

noreply at xfce.org noreply at xfce.org
Tue Mar 18 20:56:07 CET 2014


This is an automated email from the git hooks/post-receive script.

squisher pushed a commit to branch master
in repository apps/xfburn.

commit ba1fa942ff1014120759863ac1fa88860f8149c1
Author: David Mohr <david at mcbf.net>
Date:   Tue Mar 18 12:40:39 2014 -0600

    Use iso9660 level 3 and allow larger files.
    
    Thanks Thomas.
---
 xfburn/xfburn-burn-data-composition-base-dialog.c |    2 +-
 xfburn/xfburn-data-composition.c                  |    8 +++++++-
 xfburn/xfburn-global.h                            |    3 ++-
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/xfburn/xfburn-burn-data-composition-base-dialog.c b/xfburn/xfburn-burn-data-composition-base-dialog.c
index f789acc..35a13de 100644
--- a/xfburn/xfburn-burn-data-composition-base-dialog.c
+++ b/xfburn/xfburn-burn-data-composition-base-dialog.c
@@ -640,7 +640,7 @@ cb_dialog_response (XfburnBurnDataCompositionBaseDialog * dialog, gint response_
     /* Sets profile 0 [basic] */
     iso_write_opts_new (&write_opts, 0);
 
-    iso_write_opts_set_iso_level (write_opts, 2);
+    iso_write_opts_set_iso_level (write_opts, 3);
     iso_write_opts_set_rockridge (write_opts, 1);
     iso_write_opts_set_joliet (write_opts, 1);
     iso_write_opts_set_allow_deep_paths (write_opts, 1);
diff --git a/xfburn/xfburn-data-composition.c b/xfburn/xfburn-data-composition.c
index fdbde07..a9f3b7b 100644
--- a/xfburn/xfburn-data-composition.c
+++ b/xfburn/xfburn-data-composition.c
@@ -179,6 +179,7 @@ typedef struct
 
   gchar *default_vol_name;
 
+  gboolean large_files;
 } XfburnDataCompositionPrivate;
 
 /* globals */
@@ -1278,8 +1279,13 @@ thread_add_file_to_list_with_name (const gchar *name, XfburnDataComposition * dc
         gdk_threads_leave ();
 
         return FALSE;
+      } else if (s.st_size > MAXIMUM_ISO_LEVEL_2_FILE_SIZE && !priv->large_files) {
+        priv->large_files = TRUE;
+        gdk_threads_enter ();
+        xfce_dialog_show_warning (NULL, NULL, _("%s is larger than what iso9660 level 2 allows. This can be a problem for old systems or software."), path);
+        gdk_threads_leave ();
       }
-	  
+
       gdk_threads_enter ();
       screen = gtk_widget_get_screen (GTK_WIDGET (dc));
       icon_theme = gtk_icon_theme_get_for_screen (screen);
diff --git a/xfburn/xfburn-global.h b/xfburn/xfburn-global.h
index 0b33097..1ba9588 100644
--- a/xfburn/xfburn-global.h
+++ b/xfburn/xfburn-global.h
@@ -49,7 +49,8 @@
 
 #define PCM_BYTES_PER_SECS 176400
 
-#define MAXIMUM_ISO_FILE_SIZE 0xFFFFFFFF
+#define MAXIMUM_ISO_LEVEL_2_FILE_SIZE 0xFFFFFFFF
+#define MAXIMUM_ISO_FILE_SIZE 0x20000000000
 
 /* DEBUG ONLY */
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list