[brasero] Add a new error code



commit d4c770143ee292daabd35e124765f40d66f3a3aa
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Wed Oct 14 22:26:57 2009 +0200

    Add a new error code

 libbrasero-media/scsi-sense-data.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libbrasero-media/scsi-sense-data.c b/libbrasero-media/scsi-sense-data.c
index 633e91d..8bb27b6 100644
--- a/libbrasero-media/scsi-sense-data.c
+++ b/libbrasero-media/scsi-sense-data.c
@@ -70,6 +70,7 @@
 #define ASC_ASCQ_CODE_KEY_NOT_ESTABLISHED		0x6F02
 #define ASC_ASCQ_CODE_SCRAMBLED_SECTOR			0x6F03
 #define ASC_ASCQ_CODE_INVALID_TRACK_MODE		0x6400
+#define ASC_ASCQ_CODE_MEDIUM_CHANGED			0x2800
 
 /**
  * error processing 
@@ -182,6 +183,10 @@ brasero_sense_data_unit_attention (uchar *sense_data,
 			BRASERO_SCSI_SET_ERRCODE (err, BRASERO_SCSI_TIMEOUT);
 			break;
 
+		case ASC_ASCQ_CODE_MEDIUM_CHANGED:
+			BRASERO_SCSI_SET_ERRCODE (err, BRASERO_SCSI_NOT_READY);
+			break;
+
 		default:
 			res = brasero_sense_data_unknown (sense_data, err);
 			break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]