brasero r808 - in trunk: . src src/plugins/cdrkit src/plugins/cdrtools
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r808 - in trunk: . src src/plugins/cdrkit src/plugins/cdrtools
- Date: Sat, 10 May 2008 08:28:05 +0100 (BST)
Author: philippr
Date: Sat May 10 07:28:05 2008
New Revision: 808
URL: http://svn.gnome.org/viewvc/brasero?rev=808&view=rev
Log:
Fix warnings
Updated cdrecord capabilities (DVDs but no multisession and no blanking capabilities)
* src/brasero-project-size.c (brasero_project_size_finalize):
* src/plugins/cdrkit/burn-wodim.c (brasero_wodim_export_caps):
* src/plugins/cdrtools/burn-cdrecord.c
(brasero_cdrecord_export_caps):
Modified:
trunk/ChangeLog
trunk/src/brasero-project-size.c
trunk/src/plugins/cdrkit/burn-wodim.c
trunk/src/plugins/cdrtools/burn-cdrecord.c
Modified: trunk/src/brasero-project-size.c
==============================================================================
--- trunk/src/brasero-project-size.c (original)
+++ trunk/src/brasero-project-size.c Sat May 10 07:28:05 2008
@@ -303,7 +303,10 @@
BraseroDriveSize *drive;
drive = iter->data;
- g_object_unref (drive->medium);
+
+ if (drive->medium)
+ g_object_unref (drive->medium);
+
g_free (drive);
}
g_list_free (cobj->priv->drives);
Modified: trunk/src/plugins/cdrkit/burn-wodim.c
==============================================================================
--- trunk/src/plugins/cdrkit/burn-wodim.c (original)
+++ trunk/src/plugins/cdrkit/burn-wodim.c Sat May 10 07:28:05 2008
@@ -1138,7 +1138,7 @@
/* DVD+ R/RW don't support dummy mode
* NOTE: don't mix dao and multisession */
- brasero_plugin_set_flags (plugin,
+/* brasero_plugin_set_flags (plugin,
BRASERO_MEDIUM_DVDR_PLUS|
BRASERO_MEDIUM_BLANK,
BRASERO_BURN_FLAG_DAO|
@@ -1146,7 +1146,7 @@
BRASERO_BURN_FLAG_OVERBURN|
BRASERO_BURN_FLAG_NOGRACE,
BRASERO_BURN_FLAG_NONE);
-
+*/
brasero_plugin_set_flags (plugin,
BRASERO_MEDIUM_DVDR_PLUS|
BRASERO_MEDIUM_BLANK,
@@ -1156,6 +1156,7 @@
BRASERO_BURN_FLAG_NOGRACE,
BRASERO_BURN_FLAG_NONE);
+/*
brasero_plugin_set_flags (plugin,
BRASERO_MEDIUM_DVDR_PLUS|
BRASERO_MEDIUM_APPENDABLE|
@@ -1167,7 +1168,7 @@
BRASERO_BURN_FLAG_APPEND|
BRASERO_BURN_FLAG_MERGE,
BRASERO_BURN_FLAG_NONE);
-
+*/
/* for DVD+RW */
brasero_plugin_set_flags (plugin,
BRASERO_MEDIUM_DVDRW_PLUS|
Modified: trunk/src/plugins/cdrtools/burn-cdrecord.c
==============================================================================
--- trunk/src/plugins/cdrtools/burn-cdrecord.c (original)
+++ trunk/src/plugins/cdrtools/burn-cdrecord.c Sat May 10 07:28:05 2008
@@ -1022,7 +1022,7 @@
const BraseroMedia dvd_media = BRASERO_MEDIUM_DVD|
BRASERO_MEDIUM_PLUS|
BRASERO_MEDIUM_SEQUENTIAL|
- BRASERO_MEDIUM_RESTRICTED|
+// BRASERO_MEDIUM_RESTRICTED|
BRASERO_MEDIUM_WRITABLE|
BRASERO_MEDIUM_REWRITABLE|
BRASERO_MEDIUM_BLANK|
@@ -1036,7 +1036,6 @@
BRASERO_MEDIUM_HAS_DATA|
BRASERO_MEDIUM_BLANK;
BraseroBurnResult result;
- gchar *prog_name;
GSList *output;
GSList *input;
@@ -1057,7 +1056,7 @@
BRASERO_PLUGIN_IO_ACCEPT_FILE,
BRASERO_IMAGE_FORMAT_BIN);
- /* wodim can burn all DVDs when it's ISOs */
+ /* cdrecord can burn all DVDs (except restricted)when it's ISOs */
output = brasero_caps_disc_new (dvd_media);
brasero_plugin_link_caps (plugin, output, input);
g_slist_free (output);
@@ -1083,7 +1082,7 @@
/* For DVD-W and DVD-RW sequential
* NOTE: DAO et MULTI are exclusive. */
- brasero_plugin_set_flags (plugin,
+/* brasero_plugin_set_flags (plugin,
BRASERO_MEDIUM_DVD|
BRASERO_MEDIUM_SEQUENTIAL|
BRASERO_MEDIUM_WRITABLE|
@@ -1095,7 +1094,7 @@
BRASERO_BURN_FLAG_DUMMY|
BRASERO_BURN_FLAG_NOGRACE,
BRASERO_BURN_FLAG_NONE);
-
+*/
brasero_plugin_set_flags (plugin,
BRASERO_MEDIUM_DVD|
BRASERO_MEDIUM_SEQUENTIAL|
@@ -1108,7 +1107,7 @@
BRASERO_BURN_FLAG_DUMMY|
BRASERO_BURN_FLAG_NOGRACE,
BRASERO_BURN_FLAG_NONE);
-
+/*
brasero_plugin_set_flags (plugin,
BRASERO_MEDIUM_DVD|
BRASERO_MEDIUM_SEQUENTIAL|
@@ -1124,9 +1123,9 @@
BRASERO_BURN_FLAG_APPEND|
BRASERO_BURN_FLAG_MERGE,
BRASERO_BURN_FLAG_NONE);
-
+*/
/* see NOTE for DVD-RW restricted overwrite below */
- brasero_plugin_set_flags (plugin,
+/* brasero_plugin_set_flags (plugin,
BRASERO_MEDIUM_DVD|
BRASERO_MEDIUM_RESTRICTED|
BRASERO_MEDIUM_REWRITABLE|
@@ -1169,7 +1168,7 @@
BRASERO_BURN_FLAG_NOGRACE|
BRASERO_BURN_FLAG_MERGE,
BRASERO_BURN_FLAG_MULTI);
-
+*/
/* DVD+ R/RW don't support dummy mode
* NOTE: don't mix dao and multisession */
brasero_plugin_set_flags (plugin,
@@ -1181,7 +1180,7 @@
BRASERO_BURN_FLAG_NOGRACE,
BRASERO_BURN_FLAG_NONE);
- brasero_plugin_set_flags (plugin,
+/* brasero_plugin_set_flags (plugin,
BRASERO_MEDIUM_DVDR_PLUS|
BRASERO_MEDIUM_BLANK,
BRASERO_BURN_FLAG_BURNPROOF|
@@ -1189,7 +1188,8 @@
BRASERO_BURN_FLAG_MULTI|
BRASERO_BURN_FLAG_NOGRACE,
BRASERO_BURN_FLAG_NONE);
-
+*/
+/*
brasero_plugin_set_flags (plugin,
BRASERO_MEDIUM_DVDR_PLUS|
BRASERO_MEDIUM_APPENDABLE|
@@ -1201,7 +1201,7 @@
BRASERO_BURN_FLAG_APPEND|
BRASERO_BURN_FLAG_MERGE,
BRASERO_BURN_FLAG_NONE);
-
+*/
/* for DVD+RW */
brasero_plugin_set_flags (plugin,
BRASERO_MEDIUM_DVDRW_PLUS|
@@ -1254,7 +1254,58 @@
BRASERO_BURN_FLAG_NOGRACE,
BRASERO_BURN_FLAG_NONE);
- /* for blanking */
+ /* blanking/formatting caps and flags for +/sequential RW
+ * NOTE: restricted overwrite DVD-RW can't be formatted.
+ * moreover DVD+RW are formatted while DVD-RW sequential are blanked.
+ * NOTE: blanking DVD-RW doesn't work */
+ output = brasero_caps_disc_new (BRASERO_MEDIUM_DVD|
+ BRASERO_MEDIUM_PLUS|
+// BRASERO_MEDIUM_SEQUENTIAL|
+// BRASERO_MEDIUM_RESTRICTED|
+ BRASERO_MEDIUM_REWRITABLE|
+ BRASERO_MEDIUM_APPENDABLE|
+ BRASERO_MEDIUM_CLOSED|
+ BRASERO_MEDIUM_HAS_DATA|
+ BRASERO_MEDIUM_BLANK);
+ brasero_plugin_blank_caps (plugin, output);
+ g_slist_free (output);
+
+ /* This media can be blanked fast or full like any CDRW. */
+/* brasero_plugin_set_blank_flags (plugin,
+ BRASERO_MEDIUM_DVD|
+ BRASERO_MEDIUM_SEQUENTIAL|
+ BRASERO_MEDIUM_REWRITABLE|
+ BRASERO_MEDIUM_APPENDABLE|
+ BRASERO_MEDIUM_HAS_DATA|
+ BRASERO_MEDIUM_BLANK|
+ BRASERO_MEDIUM_CLOSED,
+// BRASERO_BURN_FLAG_FAST_BLANK|
+ BRASERO_BURN_FLAG_NOGRACE,
+ BRASERO_BURN_FLAG_NONE);
+*/
+ /* For DVD-RW restricted overwrite */
+/* brasero_plugin_set_blank_flags (plugin,
+ BRASERO_MEDIUM_DVD|
+ BRASERO_MEDIUM_RESTRICTED|
+ BRASERO_MEDIUM_REWRITABLE|
+ BRASERO_MEDIUM_APPENDABLE|
+ BRASERO_MEDIUM_HAS_DATA|
+ BRASERO_MEDIUM_BLANK|
+ BRASERO_MEDIUM_CLOSED,
+ BRASERO_BURN_FLAG_NOGRACE,
+ BRASERO_BURN_FLAG_NONE);
+*/
+ /* again DVD+RW don't support dummy */
+ brasero_plugin_set_blank_flags (plugin,
+ BRASERO_MEDIUM_DVDRW_PLUS|
+ BRASERO_MEDIUM_APPENDABLE|
+ BRASERO_MEDIUM_HAS_DATA|
+ BRASERO_MEDIUM_BLANK|
+ BRASERO_MEDIUM_CLOSED,
+ BRASERO_BURN_FLAG_NOGRACE,
+ BRASERO_BURN_FLAG_NONE);
+
+ /* for blanking (CDRWs) */
output = brasero_caps_disc_new (media_rw);
brasero_plugin_blank_caps (plugin, output);
g_slist_free (output);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]