|
|
4d1b16 |
From a2cca499d8b7e4b8ca7030e0656f6c57e98beb88 Mon Sep 17 00:00:00 2001
|
|
|
4d1b16 |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
4d1b16 |
Date: Thu, 9 Sep 2021 15:09:35 +0200
|
|
|
4d1b16 |
Subject: [PATCH 1/4] libbrasero-media: Fix memset() warning
|
|
|
4d1b16 |
MIME-Version: 1.0
|
|
|
4d1b16 |
Content-Type: text/plain; charset=UTF-8
|
|
|
4d1b16 |
Content-Transfer-Encoding: 8bit
|
|
|
4d1b16 |
|
|
|
4d1b16 |
libbrasero-media/scsi-read-track-information.c: In function ‘brasero_read_track_info’:
|
|
|
4d1b16 |
libbrasero-media/scsi-read-track-information.c:116:33: warning: argument to ‘sizeof’ in ‘memset’ call is the same pointer type ‘BraseroScsiTrackInfo *’ {aka ‘struct _BraseroScsiTrackInfo *’} as the destination; expected ‘BraseroScsiTrackInfo’ {aka ‘struct _BraseroScsiTrackInfo’} or an explicit length [-Wsizeof-pointer-memaccess]
|
|
|
4d1b16 |
116 | memset (&hdr, 0, sizeof (info));
|
|
|
4d1b16 |
| ^
|
|
|
4d1b16 |
---
|
|
|
4d1b16 |
libbrasero-media/scsi-read-track-information.c | 2 +-
|
|
|
4d1b16 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
4d1b16 |
|
|
|
4d1b16 |
diff --git a/libbrasero-media/scsi-read-track-information.c b/libbrasero-media/scsi-read-track-information.c
|
|
|
4d1b16 |
index 37644f25..6f6274ad 100644
|
|
|
4d1b16 |
--- a/libbrasero-media/scsi-read-track-information.c
|
|
|
4d1b16 |
+++ b/libbrasero-media/scsi-read-track-information.c
|
|
|
4d1b16 |
@@ -113,7 +113,7 @@ brasero_read_track_info (BraseroRdTrackInfoCDB *cdb,
|
|
|
4d1b16 |
|
|
|
4d1b16 |
/* first ask the drive how long should the data be and then ... */
|
|
|
4d1b16 |
datasize = 4;
|
|
|
4d1b16 |
- memset (&hdr, 0, sizeof (info));
|
|
|
4d1b16 |
+ memset (&hdr, 0, sizeof (hdr));
|
|
|
4d1b16 |
BRASERO_SET_16 (cdb->alloc_len, datasize);
|
|
|
4d1b16 |
res = brasero_scsi_command_issue_sync (cdb, &hdr, datasize, error);
|
|
|
4d1b16 |
if (res)
|
|
|
4d1b16 |
--
|
|
|
4d1b16 |
GitLab
|
|
|
4d1b16 |
|
|
|
4d1b16 |
|
|
|
4d1b16 |
From 45dee052e1c3d636fd1c6d32f6320e33163ee05d Mon Sep 17 00:00:00 2001
|
|
|
4d1b16 |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
4d1b16 |
Date: Thu, 9 Sep 2021 22:44:58 +0200
|
|
|
4d1b16 |
Subject: [PATCH 2/4] libbrasero-burn: Better log for
|
|
|
4d1b16 |
brasero_check_flags_for_drive()
|
|
|
4d1b16 |
|
|
|
4d1b16 |
Print some debug when flags don't match.
|
|
|
4d1b16 |
---
|
|
|
4d1b16 |
libbrasero-burn/burn-basics.c | 20 +++++++++++++++-----
|
|
|
4d1b16 |
1 file changed, 15 insertions(+), 5 deletions(-)
|
|
|
4d1b16 |
|
|
|
4d1b16 |
diff --git a/libbrasero-burn/burn-basics.c b/libbrasero-burn/burn-basics.c
|
|
|
4d1b16 |
index 2bfe7fde..f4c3a9f0 100644
|
|
|
4d1b16 |
--- a/libbrasero-burn/burn-basics.c
|
|
|
4d1b16 |
+++ b/libbrasero-burn/burn-basics.c
|
|
|
4d1b16 |
@@ -118,24 +118,34 @@ brasero_check_flags_for_drive (BraseroDrive *drive,
|
|
|
4d1b16 |
media = brasero_medium_get_status (medium);
|
|
|
4d1b16 |
if (flags & BRASERO_BURN_FLAG_DUMMY) {
|
|
|
4d1b16 |
/* This is always FALSE */
|
|
|
4d1b16 |
- if (media & BRASERO_MEDIUM_PLUS)
|
|
|
4d1b16 |
+ if (media & BRASERO_MEDIUM_PLUS) {
|
|
|
4d1b16 |
+ BRASERO_BURN_LOG ("Drive does not support BRASERO_MEDIUM_PLUS flag");
|
|
|
4d1b16 |
return FALSE;
|
|
|
4d1b16 |
+ }
|
|
|
4d1b16 |
|
|
|
4d1b16 |
if (media & BRASERO_MEDIUM_DVD) {
|
|
|
4d1b16 |
- if (!brasero_medium_can_use_dummy_for_sao (medium))
|
|
|
4d1b16 |
+ if (!brasero_medium_can_use_dummy_for_sao (medium)) {
|
|
|
4d1b16 |
+ BRASERO_BURN_LOG ("Drive does not support using dummy for SAO");
|
|
|
4d1b16 |
return FALSE;
|
|
|
4d1b16 |
+ }
|
|
|
4d1b16 |
}
|
|
|
4d1b16 |
else if (flags & BRASERO_BURN_FLAG_DAO) {
|
|
|
4d1b16 |
- if (!brasero_medium_can_use_dummy_for_sao (medium))
|
|
|
4d1b16 |
+ if (!brasero_medium_can_use_dummy_for_sao (medium)) {
|
|
|
4d1b16 |
+ BRASERO_BURN_LOG ("Drive does not support using dummy for DAO");
|
|
|
4d1b16 |
return FALSE;
|
|
|
4d1b16 |
+ }
|
|
|
4d1b16 |
}
|
|
|
4d1b16 |
- else if (!brasero_medium_can_use_dummy_for_tao (medium))
|
|
|
4d1b16 |
+ else if (!brasero_medium_can_use_dummy_for_tao (medium)) {
|
|
|
4d1b16 |
+ BRASERO_BURN_LOG ("Drive does not support using dummy for TAO");
|
|
|
4d1b16 |
return FALSE;
|
|
|
4d1b16 |
+ }
|
|
|
4d1b16 |
}
|
|
|
4d1b16 |
|
|
|
4d1b16 |
if (flags & BRASERO_BURN_FLAG_BURNPROOF) {
|
|
|
4d1b16 |
- if (!brasero_medium_can_use_burnfree (medium))
|
|
|
4d1b16 |
+ if (!brasero_medium_can_use_burnfree (medium)) {
|
|
|
4d1b16 |
+ BRASERO_BURN_LOG ("Drive does not support burnproof/burnfree");
|
|
|
4d1b16 |
return FALSE;
|
|
|
4d1b16 |
+ }
|
|
|
4d1b16 |
}
|
|
|
4d1b16 |
|
|
|
4d1b16 |
return TRUE;
|
|
|
4d1b16 |
--
|
|
|
4d1b16 |
GitLab
|
|
|
4d1b16 |
|
|
|
4d1b16 |
|
|
|
4d1b16 |
From 52137beac620cf34541698a3d0222f5e169eba85 Mon Sep 17 00:00:00 2001
|
|
|
4d1b16 |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
4d1b16 |
Date: Thu, 9 Sep 2021 23:45:03 +0200
|
|
|
4d1b16 |
Subject: [PATCH 3/4] libbrasero-burn: Fix
|
|
|
4d1b16 |
BRASERO_PLUGIN_ADD_STANDARD_BD_R_FLAGS
|
|
|
4d1b16 |
|
|
|
4d1b16 |
The macro was never used and was missing an opening parenthesis.
|
|
|
4d1b16 |
---
|
|
|
4d1b16 |
libbrasero-burn/brasero-plugin-registration.h | 2 +-
|
|
|
4d1b16 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
4d1b16 |
|
|
|
4d1b16 |
diff --git a/libbrasero-burn/brasero-plugin-registration.h b/libbrasero-burn/brasero-plugin-registration.h
|
|
|
4d1b16 |
index 2d3719d8..a92fe1e9 100644
|
|
|
4d1b16 |
--- a/libbrasero-burn/brasero-plugin-registration.h
|
|
|
4d1b16 |
+++ b/libbrasero-burn/brasero-plugin-registration.h
|
|
|
4d1b16 |
@@ -494,7 +494,7 @@ brasero_plugin_register (BraseroPlugin *plugin) \
|
|
|
4d1b16 |
BRASERO_MEDIUM_BDR_SRM_POW| \
|
|
|
4d1b16 |
BRASERO_MEDIUM_DUAL_L| \
|
|
|
4d1b16 |
BRASERO_MEDIUM_BLANK, \
|
|
|
4d1b16 |
- BRASERO_BURN_FLAG_MULTI| \
|
|
|
4d1b16 |
+ (BRASERO_BURN_FLAG_MULTI| \
|
|
|
4d1b16 |
BRASERO_BURN_FLAG_DUMMY| \
|
|
|
4d1b16 |
BRASERO_BURN_FLAG_NOGRACE) & \
|
|
|
4d1b16 |
(~(unsupported_MACRO)), \
|
|
|
4d1b16 |
--
|
|
|
4d1b16 |
GitLab
|
|
|
4d1b16 |
|
|
|
4d1b16 |
|
|
|
4d1b16 |
From 5e703334370ccc51e02bcd4bed33ef5bb2bd364d Mon Sep 17 00:00:00 2001
|
|
|
4d1b16 |
From: Bastien Nocera <hadess@hadess.net>
|
|
|
4d1b16 |
Date: Thu, 9 Sep 2021 23:40:28 +0200
|
|
|
4d1b16 |
Subject: [PATCH 4/4] growisofs: Fix burning BD-R media not working
|
|
|
4d1b16 |
|
|
|
4d1b16 |
The BD-R flags were simply never applied to the plugin, so the brasero
|
|
|
4d1b16 |
core didn't know how to burn that type of media.
|
|
|
4d1b16 |
|
|
|
4d1b16 |
See https://bugzilla.redhat.com/show_bug.cgi?id=1704341
|
|
|
4d1b16 |
and https://bugzilla.redhat.com/show_bug.cgi?id=1456971
|
|
|
4d1b16 |
|
|
|
4d1b16 |
Closes: #324
|
|
|
4d1b16 |
---
|
|
|
4d1b16 |
plugins/growisofs/burn-growisofs.c | 3 +++
|
|
|
4d1b16 |
1 file changed, 3 insertions(+)
|
|
|
4d1b16 |
|
|
|
4d1b16 |
diff --git a/plugins/growisofs/burn-growisofs.c b/plugins/growisofs/burn-growisofs.c
|
|
|
4d1b16 |
index 3d00a779..c9955aac 100644
|
|
|
4d1b16 |
--- a/plugins/growisofs/burn-growisofs.c
|
|
|
4d1b16 |
+++ b/plugins/growisofs/burn-growisofs.c
|
|
|
4d1b16 |
@@ -877,6 +877,9 @@ brasero_growisofs_export_caps (BraseroPlugin *plugin)
|
|
|
4d1b16 |
/* for DVD+RW */
|
|
|
4d1b16 |
BRASERO_PLUGIN_ADD_STANDARD_DVDRW_PLUS_FLAGS (plugin, BRASERO_BURN_FLAG_NONE);
|
|
|
4d1b16 |
|
|
|
4d1b16 |
+ /* for BD-R */
|
|
|
4d1b16 |
+ BRASERO_PLUGIN_ADD_STANDARD_BD_R_FLAGS (plugin, BRASERO_BURN_FLAG_NONE);
|
|
|
4d1b16 |
+
|
|
|
4d1b16 |
/* for BD-RE */
|
|
|
4d1b16 |
BRASERO_PLUGIN_ADD_STANDARD_BD_RE_FLAGS (plugin, BRASERO_BURN_FLAG_NONE);
|
|
|
4d1b16 |
|
|
|
4d1b16 |
--
|
|
|
4d1b16 |
GitLab
|
|
|
4d1b16 |
|