Blame SOURCES/brasero-3.12.2-fix-bdr-flags.patch

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